github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/obs/model_header.go (about)

     1  // Copyright 2019 Huawei Technologies Co.,Ltd.
     2  // Licensed under the Apache License, Version 2.0 (the "License"); you may not use
     3  // this file except in compliance with the License.  You may obtain a copy of the
     4  // License at
     5  //
     6  // http://www.apache.org/licenses/LICENSE-2.0
     7  //
     8  // Unless required by applicable law or agreed to in writing, software distributed
     9  // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
    10  // CONDITIONS OF ANY KIND, either express or implied.  See the License for the
    11  // specific language governing permissions and limitations under the License.
    12  
    13  package obs
    14  
    15  // ISseHeader defines the sse encryption header
    16  type ISseHeader interface {
    17  	GetEncryption() string
    18  	GetKey() string
    19  }
    20  
    21  // SseKmsHeader defines the SseKms header
    22  type SseKmsHeader struct {
    23  	Encryption string
    24  	Key        string
    25  	isObs      bool
    26  }
    27  
    28  // SseCHeader defines the SseC header
    29  type SseCHeader struct {
    30  	Encryption string
    31  	Key        string
    32  	KeyMD5     string
    33  }