Help us shape the future of Go! Take the 2026 Go Developer Survey

namespace

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthMessage        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMessage          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMessage = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Environment_name = map[int32]string{
	0: "Unspecified",
	1: "Dev",
	2: "Test",
	3: "Prod",
}
View Source
var Environment_value = map[string]int32{
	"Unspecified": 0,
	"Dev":         1,
	"Test":        2,
	"Prod":        3,
}
View Source
var SearchAttributeType_name = map[int32]string{
	0: "Unspecified",
	1: "Keyword",
	2: "Text",
	3: "Int",
	4: "Double",
	5: "Datetime",
	6: "Bool",
}
View Source
var SearchAttributeType_value = map[string]int32{
	"Unspecified": 0,
	"Keyword":     1,
	"Text":        2,
	"Int":         3,
	"Double":      4,
	"Datetime":    5,
	"Bool":        6,
}
View Source
var State_name = map[int32]string{
	0:  "Unspecified",
	1:  "Activating",
	2:  "ActivationFailed",
	3:  "Active",
	4:  "Updating",
	5:  "UpdateFailed",
	6:  "Deleting",
	7:  "DeleteFailed",
	8:  "Deleted",
	9:  "Suspending",
	10: "SuspendFailed",
	11: "Suspended",
}
View Source
var State_value = map[string]int32{
	"Unspecified":      0,
	"Activating":       1,
	"ActivationFailed": 2,
	"Active":           3,
	"Updating":         4,
	"UpdateFailed":     5,
	"Deleting":         6,
	"DeleteFailed":     7,
	"Deleted":          8,
	"Suspending":       9,
	"SuspendFailed":    10,
	"Suspended":        11,
}

Functions

This section is empty.

Types

type CertificateFilterSpec

type CertificateFilterSpec struct {
	// (-- api-linter: core::0122::name-suffix=disabled --)
	CommonName         string `protobuf:"bytes,1,opt,name=common_name,json=commonName,proto3" json:"common_name,omitempty"`
	Organization       string `protobuf:"bytes,2,opt,name=organization,proto3" json:"organization,omitempty"`
	OrganizationalUnit string `protobuf:"bytes,3,opt,name=organizational_unit,json=organizationalUnit,proto3" json:"organizational_unit,omitempty"`
	// (-- api-linter: core::0122::name-suffix=disabled --)
	SubjectAlternativeName string `` /* 129-byte string literal not displayed */
}

a filter matches a certificate if the specified fields on the filter match the corresponding fields on the certificate. A filter with zero specified fields is invalid and will be rejected by the server. A field is either an exact string match, a prefix match (field starts with '*') or a suffix match (field ends with a '*')

func (*CertificateFilterSpec) Descriptor

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

func (*CertificateFilterSpec) Equal

func (this *CertificateFilterSpec) Equal(that interface{}) bool

func (*CertificateFilterSpec) GetCommonName

func (m *CertificateFilterSpec) GetCommonName() string

func (*CertificateFilterSpec) GetOrganization

func (m *CertificateFilterSpec) GetOrganization() string

func (*CertificateFilterSpec) GetOrganizationalUnit

func (m *CertificateFilterSpec) GetOrganizationalUnit() string

func (*CertificateFilterSpec) GetSubjectAlternativeName

func (m *CertificateFilterSpec) GetSubjectAlternativeName() string

func (*CertificateFilterSpec) GoString

func (this *CertificateFilterSpec) GoString() string

func (*CertificateFilterSpec) Marshal

func (m *CertificateFilterSpec) Marshal() (dAtA []byte, err error)

func (*CertificateFilterSpec) MarshalTo

func (m *CertificateFilterSpec) MarshalTo(dAtA []byte) (int, error)

func (*CertificateFilterSpec) MarshalToSizedBuffer

func (m *CertificateFilterSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CertificateFilterSpec) ProtoMessage

func (*CertificateFilterSpec) ProtoMessage()

func (*CertificateFilterSpec) Reset

func (m *CertificateFilterSpec) Reset()

func (*CertificateFilterSpec) Size

func (m *CertificateFilterSpec) Size() (n int)

func (*CertificateFilterSpec) String

func (this *CertificateFilterSpec) String() string

func (*CertificateFilterSpec) Unmarshal

func (m *CertificateFilterSpec) Unmarshal(dAtA []byte) error

func (*CertificateFilterSpec) XXX_DiscardUnknown

func (m *CertificateFilterSpec) XXX_DiscardUnknown()

func (*CertificateFilterSpec) XXX_Marshal

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

func (*CertificateFilterSpec) XXX_Merge

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

func (*CertificateFilterSpec) XXX_Size

func (m *CertificateFilterSpec) XXX_Size() int

func (*CertificateFilterSpec) XXX_Unmarshal

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

type CodecServerPropertySpec added in v0.7.0

type CodecServerPropertySpec struct {
	// server endpoints
	Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// whether to pass access token, i.e. jwt
	PassAccessToken bool `protobuf:"varint,2,opt,name=pass_access_token,json=passAccessToken,proto3" json:"pass_access_token,omitempty"`
	// whether to include credentials
	IncludeCredentials bool `protobuf:"varint,3,opt,name=include_credentials,json=includeCredentials,proto3" json:"include_credentials,omitempty"`
}

func (*CodecServerPropertySpec) Descriptor added in v0.7.0

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

func (*CodecServerPropertySpec) Equal added in v0.7.0

func (this *CodecServerPropertySpec) Equal(that interface{}) bool

func (*CodecServerPropertySpec) GetEndpoint added in v0.7.0

func (m *CodecServerPropertySpec) GetEndpoint() string

func (*CodecServerPropertySpec) GetIncludeCredentials added in v0.7.0

func (m *CodecServerPropertySpec) GetIncludeCredentials() bool

func (*CodecServerPropertySpec) GetPassAccessToken added in v0.7.0

func (m *CodecServerPropertySpec) GetPassAccessToken() bool

func (*CodecServerPropertySpec) GoString added in v0.7.0

func (this *CodecServerPropertySpec) GoString() string

func (*CodecServerPropertySpec) Marshal added in v0.7.0

func (m *CodecServerPropertySpec) Marshal() (dAtA []byte, err error)

func (*CodecServerPropertySpec) MarshalTo added in v0.7.0

func (m *CodecServerPropertySpec) MarshalTo(dAtA []byte) (int, error)

func (*CodecServerPropertySpec) MarshalToSizedBuffer added in v0.7.0

func (m *CodecServerPropertySpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CodecServerPropertySpec) ProtoMessage added in v0.7.0

func (*CodecServerPropertySpec) ProtoMessage()

func (*CodecServerPropertySpec) Reset added in v0.7.0

func (m *CodecServerPropertySpec) Reset()

func (*CodecServerPropertySpec) Size added in v0.7.0

func (m *CodecServerPropertySpec) Size() (n int)

func (*CodecServerPropertySpec) String added in v0.7.0

func (this *CodecServerPropertySpec) String() string

func (*CodecServerPropertySpec) Unmarshal added in v0.7.0

func (m *CodecServerPropertySpec) Unmarshal(dAtA []byte) error

func (*CodecServerPropertySpec) XXX_DiscardUnknown added in v0.7.0

func (m *CodecServerPropertySpec) XXX_DiscardUnknown()

func (*CodecServerPropertySpec) XXX_Marshal added in v0.7.0

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

func (*CodecServerPropertySpec) XXX_Merge added in v0.7.0

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

func (*CodecServerPropertySpec) XXX_Size added in v0.7.0

func (m *CodecServerPropertySpec) XXX_Size() int

func (*CodecServerPropertySpec) XXX_Unmarshal added in v0.7.0

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

type Environment

type Environment int32
const (
	ENVIRONMENT_UNSPECIFIED Environment = 0
	ENVIRONMENT_DEV         Environment = 1
	ENVIRONMENT_TEST        Environment = 2
	ENVIRONMENT_PROD        Environment = 3
)

func (Environment) EnumDescriptor

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

func (Environment) String

func (x Environment) String() string

type Namespace

type Namespace struct {
	// the namespace
	Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// the current version of the namespace specification
	// the next update request will have to include this version
	ResourceVersion string `protobuf:"bytes,2,opt,name=resource_version,json=resourceVersion,proto3" json:"resource_version,omitempty"`
	// the namespace specification
	Spec *NamespaceSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec,omitempty"`
	// the current state of the namespace
	State State `protobuf:"varint,4,opt,name=state,proto3,enum=api.namespace.v1.State" json:"state,omitempty"`
	// the id of the request that is creating/updating the namespace, if any
	RequestId string `protobuf:"bytes,5,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// the date and time when the namespace was last modified
	LastModifiedTime *types.Timestamp `protobuf:"bytes,6,opt,name=last_modified_time,json=lastModifiedTime,proto3" json:"last_modified_time,omitempty"`
	// the web uri for the namespace
	Uri *NamespaceURI `protobuf:"bytes,7,opt,name=uri,proto3" json:"uri,omitempty"`
	// namespace envelope is a list of service level agreements (SLAs) that can be provided around a given namespace
	Envelope *NamespaceEnvelope `protobuf:"bytes,9,opt,name=envelope,proto3" json:"envelope,omitempty"`
	// codec server information saved
	CodecServerProperty *CodecServerPropertySpec `protobuf:"bytes,10,opt,name=codec_server_property,json=codecServerProperty,proto3" json:"codec_server_property,omitempty"`
}

func (*Namespace) Descriptor

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

func (*Namespace) Equal

func (this *Namespace) Equal(that interface{}) bool

func (*Namespace) GetCodecServerProperty added in v0.7.0

func (m *Namespace) GetCodecServerProperty() *CodecServerPropertySpec

func (*Namespace) GetEnvelope added in v0.7.0

func (m *Namespace) GetEnvelope() *NamespaceEnvelope

func (*Namespace) GetLastModifiedTime

func (m *Namespace) GetLastModifiedTime() *types.Timestamp

func (*Namespace) GetNamespace

func (m *Namespace) GetNamespace() string

func (*Namespace) GetRequestId

func (m *Namespace) GetRequestId() string

func (*Namespace) GetResourceVersion

func (m *Namespace) GetResourceVersion() string

func (*Namespace) GetSpec

func (m *Namespace) GetSpec() *NamespaceSpec

func (*Namespace) GetState

func (m *Namespace) GetState() State

func (*Namespace) GetUri

func (m *Namespace) GetUri() *NamespaceURI

func (*Namespace) GoString

func (this *Namespace) GoString() string

func (*Namespace) Marshal

func (m *Namespace) Marshal() (dAtA []byte, err error)

func (*Namespace) MarshalTo

func (m *Namespace) MarshalTo(dAtA []byte) (int, error)

func (*Namespace) MarshalToSizedBuffer

func (m *Namespace) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Namespace) ProtoMessage

func (*Namespace) ProtoMessage()

func (*Namespace) Reset

func (m *Namespace) Reset()

func (*Namespace) Size

func (m *Namespace) Size() (n int)

func (*Namespace) String

func (this *Namespace) String() string

func (*Namespace) Unmarshal

func (m *Namespace) Unmarshal(dAtA []byte) error

func (*Namespace) XXX_DiscardUnknown

func (m *Namespace) XXX_DiscardUnknown()

func (*Namespace) XXX_Marshal

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

func (*Namespace) XXX_Merge

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

func (*Namespace) XXX_Size

func (m *Namespace) XXX_Size() int

func (*Namespace) XXX_Unmarshal

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

type NamespaceEnvelope added in v0.7.0

type NamespaceEnvelope struct {
	// the namespace may be throttled if its APS exceeds the limit
	ActionsPerSecondLimit int32 `` /* 129-byte string literal not displayed */
}

func (*NamespaceEnvelope) Descriptor added in v0.7.0

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

func (*NamespaceEnvelope) Equal added in v0.7.0

func (this *NamespaceEnvelope) Equal(that interface{}) bool

func (*NamespaceEnvelope) GetActionsPerSecondLimit added in v0.7.0

func (m *NamespaceEnvelope) GetActionsPerSecondLimit() int32

func (*NamespaceEnvelope) GoString added in v0.7.0

func (this *NamespaceEnvelope) GoString() string

func (*NamespaceEnvelope) Marshal added in v0.7.0

func (m *NamespaceEnvelope) Marshal() (dAtA []byte, err error)

func (*NamespaceEnvelope) MarshalTo added in v0.7.0

func (m *NamespaceEnvelope) MarshalTo(dAtA []byte) (int, error)

func (*NamespaceEnvelope) MarshalToSizedBuffer added in v0.7.0

func (m *NamespaceEnvelope) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NamespaceEnvelope) ProtoMessage added in v0.7.0

func (*NamespaceEnvelope) ProtoMessage()

func (*NamespaceEnvelope) Reset added in v0.7.0

func (m *NamespaceEnvelope) Reset()

func (*NamespaceEnvelope) Size added in v0.7.0

func (m *NamespaceEnvelope) Size() (n int)

func (*NamespaceEnvelope) String added in v0.7.0

func (this *NamespaceEnvelope) String() string

func (*NamespaceEnvelope) Unmarshal added in v0.7.0

func (m *NamespaceEnvelope) Unmarshal(dAtA []byte) error

func (*NamespaceEnvelope) XXX_DiscardUnknown added in v0.7.0

func (m *NamespaceEnvelope) XXX_DiscardUnknown()

func (*NamespaceEnvelope) XXX_Marshal added in v0.7.0

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

func (*NamespaceEnvelope) XXX_Merge added in v0.7.0

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

func (*NamespaceEnvelope) XXX_Size added in v0.7.0

func (m *NamespaceEnvelope) XXX_Size() int

func (*NamespaceEnvelope) XXX_Unmarshal added in v0.7.0

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

type NamespaceSpec

type NamespaceSpec struct {
	// the region where the namespace is (or will be) active.
	Region string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"`
	// the base64 encoded ca cert(s) that the clients can use for authentication and authorization
	AcceptedClientCa string `protobuf:"bytes,2,opt,name=accepted_client_ca,json=acceptedClientCa,proto3" json:"accepted_client_ca,omitempty"`
	// the num of days the workflows' data will be retained for
	RetentionDays int32 `protobuf:"varint,3,opt,name=retention_days,json=retentionDays,proto3" json:"retention_days,omitempty"`
	// the custom search attributes to use for the namespace
	SearchAttributes map[string]SearchAttributeType `` /* 240-byte string literal not displayed */
	// certificate filters which, if specified, only allow connections from client certificates
	// whose distinguished name properties match at least one of the filters.
	CertificateFilters []*CertificateFilterSpec `protobuf:"bytes,5,rep,name=certificate_filters,json=certificateFilters,proto3" json:"certificate_filters,omitempty"`
	// environment of the namespace.
	// NOTE: currently there is no additional SLA or functional guarantee implied by the value of this field.
	Environment Environment `protobuf:"varint,6,opt,name=environment,proto3,enum=api.namespace.v1.Environment" json:"environment,omitempty"`
	// codec server property spec needed for user to set and retrieve
	CodecSpec *CodecServerPropertySpec `protobuf:"bytes,8,opt,name=codec_spec,json=codecSpec,proto3" json:"codec_spec,omitempty"`
	// the regions where the namespace is (or will be) located
	PassiveRegions []string `protobuf:"bytes,9,rep,name=passive_regions,json=passiveRegions,proto3" json:"passive_regions,omitempty"`
}

func (*NamespaceSpec) Descriptor

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

func (*NamespaceSpec) Equal

func (this *NamespaceSpec) Equal(that interface{}) bool

func (*NamespaceSpec) GetAcceptedClientCa

func (m *NamespaceSpec) GetAcceptedClientCa() string

func (*NamespaceSpec) GetCertificateFilters

func (m *NamespaceSpec) GetCertificateFilters() []*CertificateFilterSpec

func (*NamespaceSpec) GetCodecSpec added in v0.7.0

func (m *NamespaceSpec) GetCodecSpec() *CodecServerPropertySpec

func (*NamespaceSpec) GetEnvironment

func (m *NamespaceSpec) GetEnvironment() Environment

func (*NamespaceSpec) GetPassiveRegions added in v0.7.0

func (m *NamespaceSpec) GetPassiveRegions() []string

func (*NamespaceSpec) GetRegion

func (m *NamespaceSpec) GetRegion() string

func (*NamespaceSpec) GetRetentionDays

func (m *NamespaceSpec) GetRetentionDays() int32

func (*NamespaceSpec) GetSearchAttributes

func (m *NamespaceSpec) GetSearchAttributes() map[string]SearchAttributeType

func (*NamespaceSpec) GoString

func (this *NamespaceSpec) GoString() string

func (*NamespaceSpec) Marshal

func (m *NamespaceSpec) Marshal() (dAtA []byte, err error)

func (*NamespaceSpec) MarshalTo

func (m *NamespaceSpec) MarshalTo(dAtA []byte) (int, error)

func (*NamespaceSpec) MarshalToSizedBuffer

func (m *NamespaceSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NamespaceSpec) ProtoMessage

func (*NamespaceSpec) ProtoMessage()

func (*NamespaceSpec) Reset

func (m *NamespaceSpec) Reset()

func (*NamespaceSpec) Size

func (m *NamespaceSpec) Size() (n int)

func (*NamespaceSpec) String

func (this *NamespaceSpec) String() string

func (*NamespaceSpec) Unmarshal

func (m *NamespaceSpec) Unmarshal(dAtA []byte) error

func (*NamespaceSpec) XXX_DiscardUnknown

func (m *NamespaceSpec) XXX_DiscardUnknown()

func (*NamespaceSpec) XXX_Marshal

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

func (*NamespaceSpec) XXX_Merge

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

func (*NamespaceSpec) XXX_Size

func (m *NamespaceSpec) XXX_Size() int

func (*NamespaceSpec) XXX_Unmarshal

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

type NamespaceURI

type NamespaceURI struct {
	// the web ui address
	Web string `protobuf:"bytes,1,opt,name=web,proto3" json:"web,omitempty"`
	// the grpc address
	Grpc string `protobuf:"bytes,2,opt,name=grpc,proto3" json:"grpc,omitempty"`
	// the list of private links
	VpcEndpointServiceNames []string `` /* 134-byte string literal not displayed */
}

func (*NamespaceURI) Descriptor

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

func (*NamespaceURI) Equal

func (this *NamespaceURI) Equal(that interface{}) bool

func (*NamespaceURI) GetGrpc

func (m *NamespaceURI) GetGrpc() string

func (*NamespaceURI) GetVpcEndpointServiceNames added in v0.7.0

func (m *NamespaceURI) GetVpcEndpointServiceNames() []string

func (*NamespaceURI) GetWeb

func (m *NamespaceURI) GetWeb() string

func (*NamespaceURI) GoString

func (this *NamespaceURI) GoString() string

func (*NamespaceURI) Marshal

func (m *NamespaceURI) Marshal() (dAtA []byte, err error)

func (*NamespaceURI) MarshalTo

func (m *NamespaceURI) MarshalTo(dAtA []byte) (int, error)

func (*NamespaceURI) MarshalToSizedBuffer

func (m *NamespaceURI) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*NamespaceURI) ProtoMessage

func (*NamespaceURI) ProtoMessage()

func (*NamespaceURI) Reset

func (m *NamespaceURI) Reset()

func (*NamespaceURI) Size

func (m *NamespaceURI) Size() (n int)

func (*NamespaceURI) String

func (this *NamespaceURI) String() string

func (*NamespaceURI) Unmarshal

func (m *NamespaceURI) Unmarshal(dAtA []byte) error

func (*NamespaceURI) XXX_DiscardUnknown

func (m *NamespaceURI) XXX_DiscardUnknown()

func (*NamespaceURI) XXX_Marshal

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

func (*NamespaceURI) XXX_Merge

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

func (*NamespaceURI) XXX_Size

func (m *NamespaceURI) XXX_Size() int

func (*NamespaceURI) XXX_Unmarshal

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

type SearchAttributeType

type SearchAttributeType int32
const (
	SEARCH_ATTRIBUTE_TYPE_UNSPECIFIED SearchAttributeType = 0
	SEARCH_ATTRIBUTE_TYPE_KEYWORD     SearchAttributeType = 1
	SEARCH_ATTRIBUTE_TYPE_TEXT        SearchAttributeType = 2
	SEARCH_ATTRIBUTE_TYPE_INT         SearchAttributeType = 3
	SEARCH_ATTRIBUTE_TYPE_DOUBLE      SearchAttributeType = 4
	SEARCH_ATTRIBUTE_TYPE_DATETIME    SearchAttributeType = 5
	SEARCH_ATTRIBUTE_TYPE_BOOL        SearchAttributeType = 6
)

func (SearchAttributeType) EnumDescriptor

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

func (SearchAttributeType) String

func (x SearchAttributeType) String() string

type State

type State int32
const (
	STATE_UNSPECIFIED       State = 0
	STATE_ACTIVATING        State = 1
	STATE_ACTIVATION_FAILED State = 2
	STATE_ACTIVE            State = 3
	STATE_UPDATING          State = 4
	STATE_UPDATE_FAILED     State = 5
	STATE_DELETING          State = 6
	STATE_DELETE_FAILED     State = 7
	STATE_DELETED           State = 8
	STATE_SUSPENDING        State = 9
	STATE_SUSPEND_FAILED    State = 10
	STATE_SUSPENDED         State = 11
)

func (State) EnumDescriptor

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

func (State) String

func (x State) String() string

Jump to

Keyboard shortcuts

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