google_cloud_conformance_storage_v1

package
v1.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

README

Conformance tests

These conformance tests are developed in https://github.com/googleapis/conformance-tests/ and then copied here when prompted that new tests are available.

Generating test.pb.go
protoc --go_out=. *.proto

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UrlStyle_name = map[int32]string{
	0: "PATH_STYLE",
	1: "VIRTUAL_HOSTED_STYLE",
	2: "BUCKET_BOUND_HOSTNAME",
}
View Source
var UrlStyle_value = map[string]int32{
	"PATH_STYLE":            0,
	"VIRTUAL_HOSTED_STYLE":  1,
	"BUCKET_BOUND_HOSTNAME": 2,
}

Functions

This section is empty.

Types

type ConditionalMatches added in v1.7.0

type ConditionalMatches struct {
	Expression           []string `protobuf:"bytes,1,rep,name=expression,proto3" json:"expression,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ConditionalMatches) Descriptor added in v1.7.0

func (*ConditionalMatches) Descriptor() ([]byte, []int)

func (*ConditionalMatches) GetExpression added in v1.7.0

func (m *ConditionalMatches) GetExpression() []string

func (*ConditionalMatches) ProtoMessage added in v1.7.0

func (*ConditionalMatches) ProtoMessage()

func (*ConditionalMatches) Reset added in v1.7.0

func (m *ConditionalMatches) Reset()

func (*ConditionalMatches) String added in v1.7.0

func (m *ConditionalMatches) String() string

func (*ConditionalMatches) XXX_DiscardUnknown added in v1.7.0

func (m *ConditionalMatches) XXX_DiscardUnknown()

func (*ConditionalMatches) XXX_Marshal added in v1.7.0

func (m *ConditionalMatches) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConditionalMatches) XXX_Merge added in v1.7.0

func (m *ConditionalMatches) XXX_Merge(src proto.Message)

func (*ConditionalMatches) XXX_Size added in v1.7.0

func (m *ConditionalMatches) XXX_Size() int

func (*ConditionalMatches) XXX_Unmarshal added in v1.7.0

func (m *ConditionalMatches) XXX_Unmarshal(b []byte) error

type PolicyConditions added in v1.7.0

type PolicyConditions struct {
	ContentLengthRange   []int32  `protobuf:"varint,1,rep,packed,name=contentLengthRange,proto3" json:"contentLengthRange,omitempty"`
	StartsWith           []string `protobuf:"bytes,2,rep,name=startsWith,proto3" json:"startsWith,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PolicyConditions) Descriptor added in v1.7.0

func (*PolicyConditions) Descriptor() ([]byte, []int)

func (*PolicyConditions) GetContentLengthRange added in v1.7.0

func (m *PolicyConditions) GetContentLengthRange() []int32

func (*PolicyConditions) GetStartsWith added in v1.7.0

func (m *PolicyConditions) GetStartsWith() []string

func (*PolicyConditions) ProtoMessage added in v1.7.0

func (*PolicyConditions) ProtoMessage()

func (*PolicyConditions) Reset added in v1.7.0

func (m *PolicyConditions) Reset()

func (*PolicyConditions) String added in v1.7.0

func (m *PolicyConditions) String() string

func (*PolicyConditions) XXX_DiscardUnknown added in v1.7.0

func (m *PolicyConditions) XXX_DiscardUnknown()

func (*PolicyConditions) XXX_Marshal added in v1.7.0

func (m *PolicyConditions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PolicyConditions) XXX_Merge added in v1.7.0

func (m *PolicyConditions) XXX_Merge(src proto.Message)

func (*PolicyConditions) XXX_Size added in v1.7.0

func (m *PolicyConditions) XXX_Size() int

func (*PolicyConditions) XXX_Unmarshal added in v1.7.0

func (m *PolicyConditions) XXX_Unmarshal(b []byte) error

type PolicyInput added in v1.7.0

type PolicyInput struct {
	Scheme               string               `protobuf:"bytes,1,opt,name=scheme,proto3" json:"scheme,omitempty"`
	UrlStyle             UrlStyle             `protobuf:"varint,2,opt,name=urlStyle,proto3,enum=google.cloud.conformance.storage.v1.UrlStyle" json:"urlStyle,omitempty"`
	BucketBoundHostname  string               `protobuf:"bytes,3,opt,name=bucketBoundHostname,proto3" json:"bucketBoundHostname,omitempty"`
	Bucket               string               `protobuf:"bytes,4,opt,name=bucket,proto3" json:"bucket,omitempty"`
	Object               string               `protobuf:"bytes,5,opt,name=object,proto3" json:"object,omitempty"`
	Expiration           int32                `protobuf:"varint,6,opt,name=expiration,proto3" json:"expiration,omitempty"`
	Timestamp            *timestamp.Timestamp `protobuf:"bytes,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Fields               map[string]string    `` /* 153-byte string literal not displayed */
	Conditions           *PolicyConditions    `protobuf:"bytes,9,opt,name=conditions,proto3" json:"conditions,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*PolicyInput) Descriptor added in v1.7.0

func (*PolicyInput) Descriptor() ([]byte, []int)

func (*PolicyInput) GetBucket added in v1.7.0

func (m *PolicyInput) GetBucket() string

func (*PolicyInput) GetBucketBoundHostname added in v1.7.0

func (m *PolicyInput) GetBucketBoundHostname() string

func (*PolicyInput) GetConditions added in v1.7.0

func (m *PolicyInput) GetConditions() *PolicyConditions

func (*PolicyInput) GetExpiration added in v1.7.0

func (m *PolicyInput) GetExpiration() int32

func (*PolicyInput) GetFields added in v1.7.0

func (m *PolicyInput) GetFields() map[string]string

func (*PolicyInput) GetObject added in v1.7.0

func (m *PolicyInput) GetObject() string

func (*PolicyInput) GetScheme added in v1.7.0

func (m *PolicyInput) GetScheme() string

func (*PolicyInput) GetTimestamp added in v1.7.0

func (m *PolicyInput) GetTimestamp() *timestamp.Timestamp

func (*PolicyInput) GetUrlStyle added in v1.7.0

func (m *PolicyInput) GetUrlStyle() UrlStyle

func (*PolicyInput) ProtoMessage added in v1.7.0

func (*PolicyInput) ProtoMessage()

func (*PolicyInput) Reset added in v1.7.0

func (m *PolicyInput) Reset()

func (*PolicyInput) String added in v1.7.0

func (m *PolicyInput) String() string

func (*PolicyInput) XXX_DiscardUnknown added in v1.7.0

func (m *PolicyInput) XXX_DiscardUnknown()

func (*PolicyInput) XXX_Marshal added in v1.7.0

func (m *PolicyInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PolicyInput) XXX_Merge added in v1.7.0

func (m *PolicyInput) XXX_Merge(src proto.Message)

func (*PolicyInput) XXX_Size added in v1.7.0

func (m *PolicyInput) XXX_Size() int

func (*PolicyInput) XXX_Unmarshal added in v1.7.0

func (m *PolicyInput) XXX_Unmarshal(b []byte) error

type PolicyOutput added in v1.7.0

type PolicyOutput struct {
	Url                   string            `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	Fields                map[string]string `` /* 153-byte string literal not displayed */
	ExpectedDecodedPolicy string            `protobuf:"bytes,3,opt,name=expectedDecodedPolicy,proto3" json:"expectedDecodedPolicy,omitempty"`
	XXX_NoUnkeyedLiteral  struct{}          `json:"-"`
	XXX_unrecognized      []byte            `json:"-"`
	XXX_sizecache         int32             `json:"-"`
}

func (*PolicyOutput) Descriptor added in v1.7.0

func (*PolicyOutput) Descriptor() ([]byte, []int)

func (*PolicyOutput) GetExpectedDecodedPolicy added in v1.7.0

func (m *PolicyOutput) GetExpectedDecodedPolicy() string

func (*PolicyOutput) GetFields added in v1.7.0

func (m *PolicyOutput) GetFields() map[string]string

func (*PolicyOutput) GetUrl added in v1.7.0

func (m *PolicyOutput) GetUrl() string

func (*PolicyOutput) ProtoMessage added in v1.7.0

func (*PolicyOutput) ProtoMessage()

func (*PolicyOutput) Reset added in v1.7.0

func (m *PolicyOutput) Reset()

func (*PolicyOutput) String added in v1.7.0

func (m *PolicyOutput) String() string

func (*PolicyOutput) XXX_DiscardUnknown added in v1.7.0

func (m *PolicyOutput) XXX_DiscardUnknown()

func (*PolicyOutput) XXX_Marshal added in v1.7.0

func (m *PolicyOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PolicyOutput) XXX_Merge added in v1.7.0

func (m *PolicyOutput) XXX_Merge(src proto.Message)

func (*PolicyOutput) XXX_Size added in v1.7.0

func (m *PolicyOutput) XXX_Size() int

func (*PolicyOutput) XXX_Unmarshal added in v1.7.0

func (m *PolicyOutput) XXX_Unmarshal(b []byte) error

type PostPolicyV4Test added in v1.7.0

type PostPolicyV4Test struct {
	Description          string        `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	PolicyInput          *PolicyInput  `protobuf:"bytes,2,opt,name=policyInput,proto3" json:"policyInput,omitempty"`
	PolicyOutput         *PolicyOutput `protobuf:"bytes,3,opt,name=policyOutput,proto3" json:"policyOutput,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*PostPolicyV4Test) Descriptor added in v1.7.0

func (*PostPolicyV4Test) Descriptor() ([]byte, []int)

func (*PostPolicyV4Test) GetDescription added in v1.7.0

func (m *PostPolicyV4Test) GetDescription() string

func (*PostPolicyV4Test) GetPolicyInput added in v1.7.0

func (m *PostPolicyV4Test) GetPolicyInput() *PolicyInput

func (*PostPolicyV4Test) GetPolicyOutput added in v1.7.0

func (m *PostPolicyV4Test) GetPolicyOutput() *PolicyOutput

func (*PostPolicyV4Test) ProtoMessage added in v1.7.0

func (*PostPolicyV4Test) ProtoMessage()

func (*PostPolicyV4Test) Reset added in v1.7.0

func (m *PostPolicyV4Test) Reset()

func (*PostPolicyV4Test) String added in v1.7.0

func (m *PostPolicyV4Test) String() string

func (*PostPolicyV4Test) XXX_DiscardUnknown added in v1.7.0

func (m *PostPolicyV4Test) XXX_DiscardUnknown()

func (*PostPolicyV4Test) XXX_Marshal added in v1.7.0

func (m *PostPolicyV4Test) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PostPolicyV4Test) XXX_Merge added in v1.7.0

func (m *PostPolicyV4Test) XXX_Merge(src proto.Message)

func (*PostPolicyV4Test) XXX_Size added in v1.7.0

func (m *PostPolicyV4Test) XXX_Size() int

func (*PostPolicyV4Test) XXX_Unmarshal added in v1.7.0

func (m *PostPolicyV4Test) XXX_Unmarshal(b []byte) error

type SigningV4Test

type SigningV4Test struct {
	FileName                 string               `protobuf:"bytes,1,opt,name=fileName,proto3" json:"fileName,omitempty"`
	Description              string               `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Bucket                   string               `protobuf:"bytes,3,opt,name=bucket,proto3" json:"bucket,omitempty"`
	Object                   string               `protobuf:"bytes,4,opt,name=object,proto3" json:"object,omitempty"`
	Method                   string               `protobuf:"bytes,5,opt,name=method,proto3" json:"method,omitempty"`
	Expiration               int64                `protobuf:"varint,6,opt,name=expiration,proto3" json:"expiration,omitempty"`
	Timestamp                *timestamp.Timestamp `protobuf:"bytes,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	ExpectedUrl              string               `protobuf:"bytes,8,opt,name=expectedUrl,proto3" json:"expectedUrl,omitempty"`
	Headers                  map[string]string    `` /* 155-byte string literal not displayed */
	QueryParameters          map[string]string    `` /* 195-byte string literal not displayed */
	Scheme                   string               `protobuf:"bytes,11,opt,name=scheme,proto3" json:"scheme,omitempty"`
	UrlStyle                 UrlStyle             `protobuf:"varint,12,opt,name=urlStyle,proto3,enum=google.cloud.conformance.storage.v1.UrlStyle" json:"urlStyle,omitempty"`
	BucketBoundHostname      string               `protobuf:"bytes,13,opt,name=bucketBoundHostname,proto3" json:"bucketBoundHostname,omitempty"`
	ExpectedCanonicalRequest string               `protobuf:"bytes,14,opt,name=expectedCanonicalRequest,proto3" json:"expectedCanonicalRequest,omitempty"`
	ExpectedStringToSign     string               `protobuf:"bytes,15,opt,name=expectedStringToSign,proto3" json:"expectedStringToSign,omitempty"`
	XXX_NoUnkeyedLiteral     struct{}             `json:"-"`
	XXX_unrecognized         []byte               `json:"-"`
	XXX_sizecache            int32                `json:"-"`
}

func (*SigningV4Test) Descriptor

func (*SigningV4Test) Descriptor() ([]byte, []int)

func (*SigningV4Test) GetBucket

func (m *SigningV4Test) GetBucket() string

func (*SigningV4Test) GetBucketBoundHostname added in v1.7.0

func (m *SigningV4Test) GetBucketBoundHostname() string

func (*SigningV4Test) GetDescription

func (m *SigningV4Test) GetDescription() string

func (*SigningV4Test) GetExpectedCanonicalRequest added in v1.7.0

func (m *SigningV4Test) GetExpectedCanonicalRequest() string

func (*SigningV4Test) GetExpectedStringToSign added in v1.7.0

func (m *SigningV4Test) GetExpectedStringToSign() string

func (*SigningV4Test) GetExpectedUrl

func (m *SigningV4Test) GetExpectedUrl() string

func (*SigningV4Test) GetExpiration

func (m *SigningV4Test) GetExpiration() int64

func (*SigningV4Test) GetFileName

func (m *SigningV4Test) GetFileName() string

func (*SigningV4Test) GetHeaders

func (m *SigningV4Test) GetHeaders() map[string]string

func (*SigningV4Test) GetMethod

func (m *SigningV4Test) GetMethod() string

func (*SigningV4Test) GetObject

func (m *SigningV4Test) GetObject() string

func (*SigningV4Test) GetQueryParameters added in v1.7.0

func (m *SigningV4Test) GetQueryParameters() map[string]string

func (*SigningV4Test) GetScheme added in v1.7.0

func (m *SigningV4Test) GetScheme() string

func (*SigningV4Test) GetTimestamp

func (m *SigningV4Test) GetTimestamp() *timestamp.Timestamp

func (*SigningV4Test) GetUrlStyle added in v1.7.0

func (m *SigningV4Test) GetUrlStyle() UrlStyle

func (*SigningV4Test) ProtoMessage

func (*SigningV4Test) ProtoMessage()

func (*SigningV4Test) Reset

func (m *SigningV4Test) Reset()

func (*SigningV4Test) String

func (m *SigningV4Test) String() string

func (*SigningV4Test) XXX_DiscardUnknown

func (m *SigningV4Test) XXX_DiscardUnknown()

func (*SigningV4Test) XXX_Marshal

func (m *SigningV4Test) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SigningV4Test) XXX_Merge

func (m *SigningV4Test) XXX_Merge(src proto.Message)

func (*SigningV4Test) XXX_Size

func (m *SigningV4Test) XXX_Size() int

func (*SigningV4Test) XXX_Unmarshal

func (m *SigningV4Test) XXX_Unmarshal(b []byte) error

type TestFile

type TestFile struct {
	SigningV4Tests       []*SigningV4Test    `protobuf:"bytes,1,rep,name=signing_v4_tests,json=signingV4Tests,proto3" json:"signing_v4_tests,omitempty"`
	PostPolicyV4Tests    []*PostPolicyV4Test `protobuf:"bytes,2,rep,name=post_policy_v4_tests,json=postPolicyV4Tests,proto3" json:"post_policy_v4_tests,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

func (*TestFile) Descriptor

func (*TestFile) Descriptor() ([]byte, []int)

func (*TestFile) GetPostPolicyV4Tests added in v1.7.0

func (m *TestFile) GetPostPolicyV4Tests() []*PostPolicyV4Test

func (*TestFile) GetSigningV4Tests

func (m *TestFile) GetSigningV4Tests() []*SigningV4Test

func (*TestFile) ProtoMessage

func (*TestFile) ProtoMessage()

func (*TestFile) Reset

func (m *TestFile) Reset()

func (*TestFile) String

func (m *TestFile) String() string

func (*TestFile) XXX_DiscardUnknown

func (m *TestFile) XXX_DiscardUnknown()

func (*TestFile) XXX_Marshal

func (m *TestFile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TestFile) XXX_Merge

func (m *TestFile) XXX_Merge(src proto.Message)

func (*TestFile) XXX_Size

func (m *TestFile) XXX_Size() int

func (*TestFile) XXX_Unmarshal

func (m *TestFile) XXX_Unmarshal(b []byte) error

type UrlStyle added in v1.7.0

type UrlStyle int32
const (
	UrlStyle_PATH_STYLE            UrlStyle = 0
	UrlStyle_VIRTUAL_HOSTED_STYLE  UrlStyle = 1
	UrlStyle_BUCKET_BOUND_HOSTNAME UrlStyle = 2
)

func (UrlStyle) EnumDescriptor added in v1.7.0

func (UrlStyle) EnumDescriptor() ([]byte, []int)

func (UrlStyle) String added in v1.7.0

func (x UrlStyle) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL