Documentation ¶
Overview ¶
Package grpc_playground_environments_go is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterEnvironmentsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterEnvironmentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EnvironmentsClient) error
- func RegisterEnvironmentsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterEnvironmentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EnvironmentsServer) error
- func RegisterEnvironmentsServer(s *grpc.Server, srv EnvironmentsServer)
- type CreateEnvironmentRequest
- func (*CreateEnvironmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateEnvironmentRequest) GetAccountId() string
- func (x *CreateEnvironmentRequest) GetCpu() float32
- func (x *CreateEnvironmentRequest) GetDescription() string
- func (x *CreateEnvironmentRequest) GetEnvironmentQualifiedName() string
- func (x *CreateEnvironmentRequest) GetName() string
- func (x *CreateEnvironmentRequest) GetRam() float32
- func (x *CreateEnvironmentRequest) GetSetAsDefaultEnvironment() bool
- func (x *CreateEnvironmentRequest) GetStorage() float32
- func (x *CreateEnvironmentRequest) GetZoneId() string
- func (x *CreateEnvironmentRequest) GetZoneName() string
- func (*CreateEnvironmentRequest) ProtoMessage()
- func (x *CreateEnvironmentRequest) ProtoReflect() protoreflect.Message
- func (x *CreateEnvironmentRequest) Reset()
- func (x *CreateEnvironmentRequest) String() string
- func (m *CreateEnvironmentRequest) Validate() error
- func (m *CreateEnvironmentRequest) ValidateAll() error
- type CreateEnvironmentRequestMultiError
- type CreateEnvironmentRequestValidationError
- func (e CreateEnvironmentRequestValidationError) Cause() error
- func (e CreateEnvironmentRequestValidationError) Error() string
- func (e CreateEnvironmentRequestValidationError) ErrorName() string
- func (e CreateEnvironmentRequestValidationError) Field() string
- func (e CreateEnvironmentRequestValidationError) Key() bool
- func (e CreateEnvironmentRequestValidationError) Reason() string
- type DeleteEnvironmentRequest
- func (*DeleteEnvironmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteEnvironmentRequest) GetAccountId() string
- func (x *DeleteEnvironmentRequest) GetEnvironmentId() string
- func (x *DeleteEnvironmentRequest) GetEnvironmentQualifiedName() string
- func (x *DeleteEnvironmentRequest) GetForce() bool
- func (*DeleteEnvironmentRequest) ProtoMessage()
- func (x *DeleteEnvironmentRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteEnvironmentRequest) Reset()
- func (x *DeleteEnvironmentRequest) String() string
- func (m *DeleteEnvironmentRequest) Validate() error
- func (m *DeleteEnvironmentRequest) ValidateAll() error
- type DeleteEnvironmentRequestMultiError
- type DeleteEnvironmentRequestValidationError
- func (e DeleteEnvironmentRequestValidationError) Cause() error
- func (e DeleteEnvironmentRequestValidationError) Error() string
- func (e DeleteEnvironmentRequestValidationError) ErrorName() string
- func (e DeleteEnvironmentRequestValidationError) Field() string
- func (e DeleteEnvironmentRequestValidationError) Key() bool
- func (e DeleteEnvironmentRequestValidationError) Reason() string
- type Environment
- func (*Environment) Descriptor() ([]byte, []int)deprecated
- func (x *Environment) GetAccountName() string
- func (x *Environment) GetCreatedByUsername() string
- func (x *Environment) GetCreationTime() *timestamppb.Timestamp
- func (x *Environment) GetDefaultAccountEnvironment() bool
- func (x *Environment) GetDescription() string
- func (x *Environment) GetEnvironmentId() string
- func (x *Environment) GetLastStatusCheck() *timestamppb.Timestamp
- func (x *Environment) GetName() string
- func (x *Environment) GetOperationalState() EnvironmentState
- func (x *Environment) GetOperationalStateName() string
- func (x *Environment) GetStatusDetailMessage() string
- func (x *Environment) GetZoneName() string
- func (*Environment) ProtoMessage()
- func (x *Environment) ProtoReflect() protoreflect.Message
- func (x *Environment) Reset()
- func (x *Environment) String() string
- func (m *Environment) Validate() error
- func (m *Environment) ValidateAll() error
- type EnvironmentInfoResponse
- func (*EnvironmentInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EnvironmentInfoResponse) GetEnvironment() *Environment
- func (x *EnvironmentInfoResponse) GetKubernetesVersion() string
- func (x *EnvironmentInfoResponse) GetOamVersion() string
- func (x *EnvironmentInfoResponse) GetQuota() *Quota
- func (x *EnvironmentInfoResponse) GetUsers() []*EnvironmentUser
- func (*EnvironmentInfoResponse) ProtoMessage()
- func (x *EnvironmentInfoResponse) ProtoReflect() protoreflect.Message
- func (x *EnvironmentInfoResponse) Reset()
- func (x *EnvironmentInfoResponse) String() string
- func (m *EnvironmentInfoResponse) Validate() error
- func (m *EnvironmentInfoResponse) ValidateAll() error
- type EnvironmentInfoResponseMultiError
- type EnvironmentInfoResponseValidationError
- func (e EnvironmentInfoResponseValidationError) Cause() error
- func (e EnvironmentInfoResponseValidationError) Error() string
- func (e EnvironmentInfoResponseValidationError) ErrorName() string
- func (e EnvironmentInfoResponseValidationError) Field() string
- func (e EnvironmentInfoResponseValidationError) Key() bool
- func (e EnvironmentInfoResponseValidationError) Reason() string
- type EnvironmentListResponse
- func (*EnvironmentListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EnvironmentListResponse) GetEnvironments() []*Environment
- func (*EnvironmentListResponse) ProtoMessage()
- func (x *EnvironmentListResponse) ProtoReflect() protoreflect.Message
- func (x *EnvironmentListResponse) Reset()
- func (x *EnvironmentListResponse) String() string
- func (m *EnvironmentListResponse) Validate() error
- func (m *EnvironmentListResponse) ValidateAll() error
- type EnvironmentListResponseMultiError
- type EnvironmentListResponseValidationError
- func (e EnvironmentListResponseValidationError) Cause() error
- func (e EnvironmentListResponseValidationError) Error() string
- func (e EnvironmentListResponseValidationError) ErrorName() string
- func (e EnvironmentListResponseValidationError) Field() string
- func (e EnvironmentListResponseValidationError) Key() bool
- func (e EnvironmentListResponseValidationError) Reason() string
- type EnvironmentMultiError
- type EnvironmentQuotaResponse
- func (*EnvironmentQuotaResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EnvironmentQuotaResponse) GetAccountName() string
- func (x *EnvironmentQuotaResponse) GetDescription() string
- func (x *EnvironmentQuotaResponse) GetEnvironmentId() string
- func (x *EnvironmentQuotaResponse) GetName() string
- func (x *EnvironmentQuotaResponse) GetQuota() *Quota
- func (*EnvironmentQuotaResponse) ProtoMessage()
- func (x *EnvironmentQuotaResponse) ProtoReflect() protoreflect.Message
- func (x *EnvironmentQuotaResponse) Reset()
- func (x *EnvironmentQuotaResponse) String() string
- func (m *EnvironmentQuotaResponse) Validate() error
- func (m *EnvironmentQuotaResponse) ValidateAll() error
- type EnvironmentQuotaResponseMultiError
- type EnvironmentQuotaResponseValidationError
- func (e EnvironmentQuotaResponseValidationError) Cause() error
- func (e EnvironmentQuotaResponseValidationError) Error() string
- func (e EnvironmentQuotaResponseValidationError) ErrorName() string
- func (e EnvironmentQuotaResponseValidationError) Field() string
- func (e EnvironmentQuotaResponseValidationError) Key() bool
- func (e EnvironmentQuotaResponseValidationError) Reason() string
- type EnvironmentSelector
- func (*EnvironmentSelector) Descriptor() ([]byte, []int)deprecated
- func (x *EnvironmentSelector) GetAccountId() string
- func (x *EnvironmentSelector) GetEnvironmentId() string
- func (x *EnvironmentSelector) GetEnvironmentQualifiedName() string
- func (*EnvironmentSelector) ProtoMessage()
- func (x *EnvironmentSelector) ProtoReflect() protoreflect.Message
- func (x *EnvironmentSelector) Reset()
- func (x *EnvironmentSelector) String() string
- func (m *EnvironmentSelector) Validate() error
- func (m *EnvironmentSelector) ValidateAll() error
- type EnvironmentSelectorMultiError
- type EnvironmentSelectorValidationError
- func (e EnvironmentSelectorValidationError) Cause() error
- func (e EnvironmentSelectorValidationError) Error() string
- func (e EnvironmentSelectorValidationError) ErrorName() string
- func (e EnvironmentSelectorValidationError) Field() string
- func (e EnvironmentSelectorValidationError) Key() bool
- func (e EnvironmentSelectorValidationError) Reason() string
- type EnvironmentState
- func (EnvironmentState) Descriptor() protoreflect.EnumDescriptor
- func (x EnvironmentState) Enum() *EnvironmentState
- func (EnvironmentState) EnumDescriptor() ([]byte, []int)deprecated
- func (x EnvironmentState) Number() protoreflect.EnumNumber
- func (x EnvironmentState) String() string
- func (EnvironmentState) Type() protoreflect.EnumType
- type EnvironmentUser
- func (*EnvironmentUser) Descriptor() ([]byte, []int)deprecated
- func (x *EnvironmentUser) GetEmail() string
- func (x *EnvironmentUser) GetRole() string
- func (x *EnvironmentUser) GetUsername() string
- func (*EnvironmentUser) ProtoMessage()
- func (x *EnvironmentUser) ProtoReflect() protoreflect.Message
- func (x *EnvironmentUser) Reset()
- func (x *EnvironmentUser) String() string
- func (m *EnvironmentUser) Validate() error
- func (m *EnvironmentUser) ValidateAll() error
- type EnvironmentUserMultiError
- type EnvironmentUserValidationError
- func (e EnvironmentUserValidationError) Cause() error
- func (e EnvironmentUserValidationError) Error() string
- func (e EnvironmentUserValidationError) ErrorName() string
- func (e EnvironmentUserValidationError) Field() string
- func (e EnvironmentUserValidationError) Key() bool
- func (e EnvironmentUserValidationError) Reason() string
- type EnvironmentValidationError
- func (e EnvironmentValidationError) Cause() error
- func (e EnvironmentValidationError) Error() string
- func (e EnvironmentValidationError) ErrorName() string
- func (e EnvironmentValidationError) Field() string
- func (e EnvironmentValidationError) Key() bool
- func (e EnvironmentValidationError) Reason() string
- type EnvironmentsClient
- type EnvironmentsServer
- type KubeConfigResponse
- func (*KubeConfigResponse) Descriptor() ([]byte, []int)deprecated
- func (x *KubeConfigResponse) GetAssociatedServer() string
- func (x *KubeConfigResponse) GetKubeConfigRaw() string
- func (*KubeConfigResponse) ProtoMessage()
- func (x *KubeConfigResponse) ProtoReflect() protoreflect.Message
- func (x *KubeConfigResponse) Reset()
- func (x *KubeConfigResponse) String() string
- func (m *KubeConfigResponse) Validate() error
- func (m *KubeConfigResponse) ValidateAll() error
- type KubeConfigResponseMultiError
- type KubeConfigResponseValidationError
- func (e KubeConfigResponseValidationError) Cause() error
- func (e KubeConfigResponseValidationError) Error() string
- func (e KubeConfigResponseValidationError) ErrorName() string
- func (e KubeConfigResponseValidationError) Field() string
- func (e KubeConfigResponseValidationError) Key() bool
- func (e KubeConfigResponseValidationError) Reason() string
- type KubeConfigTokenResponse
- func (*KubeConfigTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *KubeConfigTokenResponse) GetTokenRaw() string
- func (*KubeConfigTokenResponse) ProtoMessage()
- func (x *KubeConfigTokenResponse) ProtoReflect() protoreflect.Message
- func (x *KubeConfigTokenResponse) Reset()
- func (x *KubeConfigTokenResponse) String() string
- func (m *KubeConfigTokenResponse) Validate() error
- func (m *KubeConfigTokenResponse) ValidateAll() error
- type KubeConfigTokenResponseMultiError
- type KubeConfigTokenResponseValidationError
- func (e KubeConfigTokenResponseValidationError) Cause() error
- func (e KubeConfigTokenResponseValidationError) Error() string
- func (e KubeConfigTokenResponseValidationError) ErrorName() string
- func (e KubeConfigTokenResponseValidationError) Field() string
- func (e KubeConfigTokenResponseValidationError) Key() bool
- func (e KubeConfigTokenResponseValidationError) Reason() string
- type ListEnvironmentsRequest
- func (*ListEnvironmentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListEnvironmentsRequest) GetAccountId() string
- func (x *ListEnvironmentsRequest) GetAccountName() string
- func (*ListEnvironmentsRequest) ProtoMessage()
- func (x *ListEnvironmentsRequest) ProtoReflect() protoreflect.Message
- func (x *ListEnvironmentsRequest) Reset()
- func (x *ListEnvironmentsRequest) String() string
- func (m *ListEnvironmentsRequest) Validate() error
- func (m *ListEnvironmentsRequest) ValidateAll() error
- type ListEnvironmentsRequestMultiError
- type ListEnvironmentsRequestValidationError
- func (e ListEnvironmentsRequestValidationError) Cause() error
- func (e ListEnvironmentsRequestValidationError) Error() string
- func (e ListEnvironmentsRequestValidationError) ErrorName() string
- func (e ListEnvironmentsRequestValidationError) Field() string
- func (e ListEnvironmentsRequestValidationError) Key() bool
- func (e ListEnvironmentsRequestValidationError) Reason() string
- type Quota
- func (*Quota) Descriptor() ([]byte, []int)deprecated
- func (x *Quota) GetCpuQuota() float32
- func (x *Quota) GetMemoryQuota() float32
- func (x *Quota) GetStorageQuota() float32
- func (x *Quota) GetUsedCpu() float32
- func (x *Quota) GetUsedMemory() float32
- func (x *Quota) GetUsedStorage() float32
- func (*Quota) ProtoMessage()
- func (x *Quota) ProtoReflect() protoreflect.Message
- func (x *Quota) Reset()
- func (x *Quota) String() string
- func (m *Quota) Validate() error
- func (m *Quota) ValidateAll() error
- type QuotaMultiError
- type QuotaValidationError
- type UnimplementedEnvironmentsServer
- func (*UnimplementedEnvironmentsServer) Create(context.Context, *CreateEnvironmentRequest) (*Environment, error)
- func (*UnimplementedEnvironmentsServer) Delete(context.Context, *DeleteEnvironmentRequest) (*grpc_playground_common_go.OpResponse, error)
- func (*UnimplementedEnvironmentsServer) GetKubeConfig(context.Context, *grpc_playground_common_go.EmptyRequest) (*KubeConfigResponse, error)
- func (*UnimplementedEnvironmentsServer) GetToken(context.Context, *grpc_playground_common_go.EmptyRequest) (*KubeConfigTokenResponse, error)
- func (*UnimplementedEnvironmentsServer) Info(context.Context, *EnvironmentSelector) (*EnvironmentInfoResponse, error)
- func (*UnimplementedEnvironmentsServer) List(context.Context, *ListEnvironmentsRequest) (*EnvironmentListResponse, error)
- func (*UnimplementedEnvironmentsServer) Quota(context.Context, *EnvironmentSelector) (*EnvironmentQuotaResponse, error)
- func (*UnimplementedEnvironmentsServer) Update(context.Context, *UpdateEnvironmentRequest) (*Environment, error)
- func (*UnimplementedEnvironmentsServer) Use(context.Context, *EnvironmentSelector) (*grpc_playground_common_go.TokenResponse, error)
- type UpdateEnvironmentRequest
- func (*UpdateEnvironmentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateEnvironmentRequest) GetAccountId() string
- func (x *UpdateEnvironmentRequest) GetDefaultAccountEnvironment() bool
- func (x *UpdateEnvironmentRequest) GetEnvironmentId() string
- func (x *UpdateEnvironmentRequest) GetEnvironmentQualifiedName() string
- func (x *UpdateEnvironmentRequest) GetUpdateDefaultAccountEnv() bool
- func (*UpdateEnvironmentRequest) ProtoMessage()
- func (x *UpdateEnvironmentRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateEnvironmentRequest) Reset()
- func (x *UpdateEnvironmentRequest) String() string
- func (m *UpdateEnvironmentRequest) Validate() error
- func (m *UpdateEnvironmentRequest) ValidateAll() error
- type UpdateEnvironmentRequestMultiError
- type UpdateEnvironmentRequestValidationError
- func (e UpdateEnvironmentRequestValidationError) Cause() error
- func (e UpdateEnvironmentRequestValidationError) Error() string
- func (e UpdateEnvironmentRequestValidationError) ErrorName() string
- func (e UpdateEnvironmentRequestValidationError) Field() string
- func (e UpdateEnvironmentRequestValidationError) Key() bool
- func (e UpdateEnvironmentRequestValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( EnvironmentState_name = map[int32]string{ 0: "UNKNOWN_ENV_STATE", 1: "ACTIVE", 2: "CREATING", 3: "UNAVAILABLE", 4: "ERROR", } EnvironmentState_value = map[string]int32{ "UNKNOWN_ENV_STATE": 0, "ACTIVE": 1, "CREATING": 2, "UNAVAILABLE": 3, "ERROR": 4, } )
Enum value maps for EnvironmentState.
var File_playground_environments_entities_proto protoreflect.FileDescriptor
var File_playground_environments_services_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEnvironmentsHandler ¶
func RegisterEnvironmentsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterEnvironmentsHandler registers the http handlers for service Environments to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterEnvironmentsHandlerClient ¶
func RegisterEnvironmentsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EnvironmentsClient) error
RegisterEnvironmentsHandlerClient registers the http handlers for service Environments to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "EnvironmentsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "EnvironmentsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "EnvironmentsClient" to call the correct interceptors.
func RegisterEnvironmentsHandlerFromEndpoint ¶
func RegisterEnvironmentsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterEnvironmentsHandlerFromEndpoint is same as RegisterEnvironmentsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterEnvironmentsHandlerServer ¶
func RegisterEnvironmentsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EnvironmentsServer) error
RegisterEnvironmentsHandlerServer registers the http handlers for service Environments to "mux". UnaryRPC :call EnvironmentsServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterEnvironmentsHandlerFromEndpoint instead.
func RegisterEnvironmentsServer ¶
func RegisterEnvironmentsServer(s *grpc.Server, srv EnvironmentsServer)
Types ¶
type CreateEnvironmentRequest ¶ added in v0.3.0
type CreateEnvironmentRequest struct { // AccountId with the parent account identifier. AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // Name with the pretty name of the environment for user facing operations. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // EnvironmentQualifiedName (EnvQN) contains both the account name and the environment name as // <account_name>/<env_name>. // EnvironmentCreation can be called by account_id and environment_name or by environment_qualified_name EnvironmentQualifiedName string `` /* 135-byte string literal not displayed */ // Description of the purpose of this environment. Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // PrimaryEnvironment flag to know which is the primary/default environment for an account. SetAsDefaultEnvironment bool `` /* 135-byte string literal not displayed */ // Environment Quota requested // CPU in Kubernetes CPU units. Cpu float32 `protobuf:"fixed32,6,opt,name=cpu,proto3" json:"cpu,omitempty"` // RAM in MB. Ram float32 `protobuf:"fixed32,7,opt,name=ram,proto3" json:"ram,omitempty"` // EphemeralStorage in MB. Storage float32 `protobuf:"fixed32,8,opt,name=storage,proto3" json:"storage,omitempty"` // ZoneId with the zone identifier where the environment will be created. Use this as an alternative to // ZoneName. ZoneId string `protobuf:"bytes,9,opt,name=zone_id,json=zoneId,proto3" json:"zone_id,omitempty"` // ZoneName with the zone name where the environment will be created. Use this as an alternative to ZoneId. ZoneName string `protobuf:"bytes,10,opt,name=zone_name,json=zoneName,proto3" json:"zone_name,omitempty"` // contains filtered or unexported fields }
CreateEnvironmentRequest is the message to request the creation of a new environment
func (*CreateEnvironmentRequest) Descriptor
deprecated
added in
v0.3.0
func (*CreateEnvironmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateEnvironmentRequest.ProtoReflect.Descriptor instead.
func (*CreateEnvironmentRequest) GetAccountId ¶ added in v0.3.0
func (x *CreateEnvironmentRequest) GetAccountId() string
func (*CreateEnvironmentRequest) GetCpu ¶ added in v0.3.0
func (x *CreateEnvironmentRequest) GetCpu() float32
func (*CreateEnvironmentRequest) GetDescription ¶ added in v0.3.0
func (x *CreateEnvironmentRequest) GetDescription() string
func (*CreateEnvironmentRequest) GetEnvironmentQualifiedName ¶ added in v0.4.0
func (x *CreateEnvironmentRequest) GetEnvironmentQualifiedName() string
func (*CreateEnvironmentRequest) GetName ¶ added in v0.3.0
func (x *CreateEnvironmentRequest) GetName() string
func (*CreateEnvironmentRequest) GetRam ¶ added in v0.3.0
func (x *CreateEnvironmentRequest) GetRam() float32
func (*CreateEnvironmentRequest) GetSetAsDefaultEnvironment ¶ added in v0.3.0
func (x *CreateEnvironmentRequest) GetSetAsDefaultEnvironment() bool
func (*CreateEnvironmentRequest) GetStorage ¶ added in v0.3.0
func (x *CreateEnvironmentRequest) GetStorage() float32
func (*CreateEnvironmentRequest) GetZoneId ¶ added in v0.12.0
func (x *CreateEnvironmentRequest) GetZoneId() string
func (*CreateEnvironmentRequest) GetZoneName ¶ added in v0.12.0
func (x *CreateEnvironmentRequest) GetZoneName() string
func (*CreateEnvironmentRequest) ProtoMessage ¶ added in v0.3.0
func (*CreateEnvironmentRequest) ProtoMessage()
func (*CreateEnvironmentRequest) ProtoReflect ¶ added in v0.3.0
func (x *CreateEnvironmentRequest) ProtoReflect() protoreflect.Message
func (*CreateEnvironmentRequest) Reset ¶ added in v0.3.0
func (x *CreateEnvironmentRequest) Reset()
func (*CreateEnvironmentRequest) String ¶ added in v0.3.0
func (x *CreateEnvironmentRequest) String() string
func (*CreateEnvironmentRequest) Validate ¶ added in v0.3.0
func (m *CreateEnvironmentRequest) Validate() error
Validate checks the field values on CreateEnvironmentRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateEnvironmentRequest) ValidateAll ¶ added in v0.11.0
func (m *CreateEnvironmentRequest) ValidateAll() error
ValidateAll checks the field values on CreateEnvironmentRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateEnvironmentRequestMultiError, or nil if none found.
type CreateEnvironmentRequestMultiError ¶ added in v0.11.0
type CreateEnvironmentRequestMultiError []error
CreateEnvironmentRequestMultiError is an error wrapping multiple validation errors returned by CreateEnvironmentRequest.ValidateAll() if the designated constraints aren't met.
func (CreateEnvironmentRequestMultiError) AllErrors ¶ added in v0.11.0
func (m CreateEnvironmentRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateEnvironmentRequestMultiError) Error ¶ added in v0.11.0
func (m CreateEnvironmentRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateEnvironmentRequestValidationError ¶ added in v0.3.0
type CreateEnvironmentRequestValidationError struct {
// contains filtered or unexported fields
}
CreateEnvironmentRequestValidationError is the validation error returned by CreateEnvironmentRequest.Validate if the designated constraints aren't met.
func (CreateEnvironmentRequestValidationError) Cause ¶ added in v0.3.0
func (e CreateEnvironmentRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateEnvironmentRequestValidationError) Error ¶ added in v0.3.0
func (e CreateEnvironmentRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateEnvironmentRequestValidationError) ErrorName ¶ added in v0.3.0
func (e CreateEnvironmentRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateEnvironmentRequestValidationError) Field ¶ added in v0.3.0
func (e CreateEnvironmentRequestValidationError) Field() string
Field function returns field value.
func (CreateEnvironmentRequestValidationError) Key ¶ added in v0.3.0
func (e CreateEnvironmentRequestValidationError) Key() bool
Key function returns key value.
func (CreateEnvironmentRequestValidationError) Reason ¶ added in v0.3.0
func (e CreateEnvironmentRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteEnvironmentRequest ¶ added in v0.6.0
type DeleteEnvironmentRequest struct { // EnvironmentQualifiedName (EnvQN) contains both the account name and the environment name as // <account_name>/<env_name>. EnvironmentQualifiedName string `` /* 135-byte string literal not displayed */ // AccountId with the account identifier. AccountId string `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // EnvironmentId with the environment identifier EnvironmentId string `protobuf:"bytes,3,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"` // Force is a flag to indicate that the environment is deleted even if it has applications deployed Force bool `protobuf:"varint,4,opt,name=force,proto3" json:"force,omitempty"` // contains filtered or unexported fields }
DeleteEnvironmentRequest is the message to request the deletion of an environment
func (*DeleteEnvironmentRequest) Descriptor
deprecated
added in
v0.6.0
func (*DeleteEnvironmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteEnvironmentRequest.ProtoReflect.Descriptor instead.
func (*DeleteEnvironmentRequest) GetAccountId ¶ added in v0.6.0
func (x *DeleteEnvironmentRequest) GetAccountId() string
func (*DeleteEnvironmentRequest) GetEnvironmentId ¶ added in v0.6.0
func (x *DeleteEnvironmentRequest) GetEnvironmentId() string
func (*DeleteEnvironmentRequest) GetEnvironmentQualifiedName ¶ added in v0.6.0
func (x *DeleteEnvironmentRequest) GetEnvironmentQualifiedName() string
func (*DeleteEnvironmentRequest) GetForce ¶ added in v0.6.0
func (x *DeleteEnvironmentRequest) GetForce() bool
func (*DeleteEnvironmentRequest) ProtoMessage ¶ added in v0.6.0
func (*DeleteEnvironmentRequest) ProtoMessage()
func (*DeleteEnvironmentRequest) ProtoReflect ¶ added in v0.6.0
func (x *DeleteEnvironmentRequest) ProtoReflect() protoreflect.Message
func (*DeleteEnvironmentRequest) Reset ¶ added in v0.6.0
func (x *DeleteEnvironmentRequest) Reset()
func (*DeleteEnvironmentRequest) String ¶ added in v0.6.0
func (x *DeleteEnvironmentRequest) String() string
func (*DeleteEnvironmentRequest) Validate ¶ added in v0.6.0
func (m *DeleteEnvironmentRequest) Validate() error
Validate checks the field values on DeleteEnvironmentRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteEnvironmentRequest) ValidateAll ¶ added in v0.11.0
func (m *DeleteEnvironmentRequest) ValidateAll() error
ValidateAll checks the field values on DeleteEnvironmentRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteEnvironmentRequestMultiError, or nil if none found.
type DeleteEnvironmentRequestMultiError ¶ added in v0.11.0
type DeleteEnvironmentRequestMultiError []error
DeleteEnvironmentRequestMultiError is an error wrapping multiple validation errors returned by DeleteEnvironmentRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteEnvironmentRequestMultiError) AllErrors ¶ added in v0.11.0
func (m DeleteEnvironmentRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteEnvironmentRequestMultiError) Error ¶ added in v0.11.0
func (m DeleteEnvironmentRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteEnvironmentRequestValidationError ¶ added in v0.6.0
type DeleteEnvironmentRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteEnvironmentRequestValidationError is the validation error returned by DeleteEnvironmentRequest.Validate if the designated constraints aren't met.
func (DeleteEnvironmentRequestValidationError) Cause ¶ added in v0.6.0
func (e DeleteEnvironmentRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteEnvironmentRequestValidationError) Error ¶ added in v0.6.0
func (e DeleteEnvironmentRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteEnvironmentRequestValidationError) ErrorName ¶ added in v0.6.0
func (e DeleteEnvironmentRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteEnvironmentRequestValidationError) Field ¶ added in v0.6.0
func (e DeleteEnvironmentRequestValidationError) Field() string
Field function returns field value.
func (DeleteEnvironmentRequestValidationError) Key ¶ added in v0.6.0
func (e DeleteEnvironmentRequestValidationError) Key() bool
Key function returns key value.
func (DeleteEnvironmentRequestValidationError) Reason ¶ added in v0.6.0
func (e DeleteEnvironmentRequestValidationError) Reason() string
Reason function returns reason value.
type Environment ¶
type Environment struct { // EnvironmentId with the environment identifier. EnvironmentId string `protobuf:"bytes,1,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"` // AccountName with the account name. AccountName string `protobuf:"bytes,2,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"` // Name of the environment. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // Description of the purpose of this environment. Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // CreationTime with the timestamp when the environment has been created. CreationTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"` // CreatedByUsername with the username that created the environment. CreatedByUsername string `protobuf:"bytes,6,opt,name=created_by_username,json=createdByUsername,proto3" json:"created_by_username,omitempty"` // ZoneName with the name of the zone associated with the environment ZoneName string `protobuf:"bytes,7,opt,name=zone_name,json=zoneName,proto3" json:"zone_name,omitempty"` // OperationalState with the environment state from the user's operational point of view. OperationalState EnvironmentState `` /* 156-byte string literal not displayed */ // OperationStateName with the string representation of OperationalState for the web UI. OperationalStateName string `protobuf:"bytes,9,opt,name=operational_state_name,json=operationalStateName,proto3" json:"operational_state_name,omitempty"` // StatusDetailMessage with a description of the environment status StatusDetailMessage string `protobuf:"bytes,10,opt,name=status_detail_message,json=statusDetailMessage,proto3" json:"status_detail_message,omitempty"` // LastStatusCheck with the last timestamp of the status checked LastStatusCheck *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=last_status_check,json=lastStatusCheck,proto3" json:"last_status_check,omitempty"` // DefaultAccountEnvironment flag to know which is the default environment for an account. DefaultAccountEnvironment bool `` /* 140-byte string literal not displayed */ // contains filtered or unexported fields }
Environment defining a workspace for a user or group of users associated with an account.
func (*Environment) Descriptor
deprecated
func (*Environment) Descriptor() ([]byte, []int)
Deprecated: Use Environment.ProtoReflect.Descriptor instead.
func (*Environment) GetAccountName ¶
func (x *Environment) GetAccountName() string
func (*Environment) GetCreatedByUsername ¶ added in v0.10.0
func (x *Environment) GetCreatedByUsername() string
func (*Environment) GetCreationTime ¶ added in v0.10.0
func (x *Environment) GetCreationTime() *timestamppb.Timestamp
func (*Environment) GetDefaultAccountEnvironment ¶ added in v0.17.0
func (x *Environment) GetDefaultAccountEnvironment() bool
func (*Environment) GetDescription ¶
func (x *Environment) GetDescription() string
func (*Environment) GetEnvironmentId ¶
func (x *Environment) GetEnvironmentId() string
func (*Environment) GetLastStatusCheck ¶ added in v0.15.0
func (x *Environment) GetLastStatusCheck() *timestamppb.Timestamp
func (*Environment) GetName ¶
func (x *Environment) GetName() string
func (*Environment) GetOperationalState ¶ added in v0.12.0
func (x *Environment) GetOperationalState() EnvironmentState
func (*Environment) GetOperationalStateName ¶ added in v0.12.0
func (x *Environment) GetOperationalStateName() string
func (*Environment) GetStatusDetailMessage ¶ added in v0.13.0
func (x *Environment) GetStatusDetailMessage() string
func (*Environment) GetZoneName ¶ added in v0.12.0
func (x *Environment) GetZoneName() string
func (*Environment) ProtoMessage ¶
func (*Environment) ProtoMessage()
func (*Environment) ProtoReflect ¶
func (x *Environment) ProtoReflect() protoreflect.Message
func (*Environment) Reset ¶
func (x *Environment) Reset()
func (*Environment) String ¶
func (x *Environment) String() string
func (*Environment) Validate ¶
func (m *Environment) Validate() error
Validate checks the field values on Environment with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Environment) ValidateAll ¶ added in v0.11.0
func (m *Environment) ValidateAll() error
ValidateAll checks the field values on Environment with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EnvironmentMultiError, or nil if none found.
type EnvironmentInfoResponse ¶
type EnvironmentInfoResponse struct { // Environment information. Environment *Environment `protobuf:"bytes,1,opt,name=environment,proto3" json:"environment,omitempty"` // Quota information. Quota *Quota `protobuf:"bytes,2,opt,name=quota,proto3" json:"quota,omitempty"` // Users with access to the environment. Users []*EnvironmentUser `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` // KubernetesVersion indicating the underlying version of kubernetes where the applications are finally deployed onto. KubernetesVersion string `protobuf:"bytes,4,opt,name=kubernetes_version,json=kubernetesVersion,proto3" json:"kubernetes_version,omitempty"` // OAMVersion with the version of the OAM standard supported by the platform. OamVersion string `protobuf:"bytes,5,opt,name=oam_version,json=oamVersion,proto3" json:"oam_version,omitempty"` // contains filtered or unexported fields }
EnvironmentInfoResponse with complete information about an environment. Depending on the permission of the requesting user, some information may be omitted.
func (*EnvironmentInfoResponse) Descriptor
deprecated
func (*EnvironmentInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use EnvironmentInfoResponse.ProtoReflect.Descriptor instead.
func (*EnvironmentInfoResponse) GetEnvironment ¶
func (x *EnvironmentInfoResponse) GetEnvironment() *Environment
func (*EnvironmentInfoResponse) GetKubernetesVersion ¶ added in v0.8.0
func (x *EnvironmentInfoResponse) GetKubernetesVersion() string
func (*EnvironmentInfoResponse) GetOamVersion ¶ added in v0.8.0
func (x *EnvironmentInfoResponse) GetOamVersion() string
func (*EnvironmentInfoResponse) GetQuota ¶
func (x *EnvironmentInfoResponse) GetQuota() *Quota
func (*EnvironmentInfoResponse) GetUsers ¶
func (x *EnvironmentInfoResponse) GetUsers() []*EnvironmentUser
func (*EnvironmentInfoResponse) ProtoMessage ¶
func (*EnvironmentInfoResponse) ProtoMessage()
func (*EnvironmentInfoResponse) ProtoReflect ¶
func (x *EnvironmentInfoResponse) ProtoReflect() protoreflect.Message
func (*EnvironmentInfoResponse) Reset ¶
func (x *EnvironmentInfoResponse) Reset()
func (*EnvironmentInfoResponse) String ¶
func (x *EnvironmentInfoResponse) String() string
func (*EnvironmentInfoResponse) Validate ¶
func (m *EnvironmentInfoResponse) Validate() error
Validate checks the field values on EnvironmentInfoResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*EnvironmentInfoResponse) ValidateAll ¶ added in v0.11.0
func (m *EnvironmentInfoResponse) ValidateAll() error
ValidateAll checks the field values on EnvironmentInfoResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EnvironmentInfoResponseMultiError, or nil if none found.
type EnvironmentInfoResponseMultiError ¶ added in v0.11.0
type EnvironmentInfoResponseMultiError []error
EnvironmentInfoResponseMultiError is an error wrapping multiple validation errors returned by EnvironmentInfoResponse.ValidateAll() if the designated constraints aren't met.
func (EnvironmentInfoResponseMultiError) AllErrors ¶ added in v0.11.0
func (m EnvironmentInfoResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EnvironmentInfoResponseMultiError) Error ¶ added in v0.11.0
func (m EnvironmentInfoResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EnvironmentInfoResponseValidationError ¶
type EnvironmentInfoResponseValidationError struct {
// contains filtered or unexported fields
}
EnvironmentInfoResponseValidationError is the validation error returned by EnvironmentInfoResponse.Validate if the designated constraints aren't met.
func (EnvironmentInfoResponseValidationError) Cause ¶
func (e EnvironmentInfoResponseValidationError) Cause() error
Cause function returns cause value.
func (EnvironmentInfoResponseValidationError) Error ¶
func (e EnvironmentInfoResponseValidationError) Error() string
Error satisfies the builtin error interface
func (EnvironmentInfoResponseValidationError) ErrorName ¶
func (e EnvironmentInfoResponseValidationError) ErrorName() string
ErrorName returns error name.
func (EnvironmentInfoResponseValidationError) Field ¶
func (e EnvironmentInfoResponseValidationError) Field() string
Field function returns field value.
func (EnvironmentInfoResponseValidationError) Key ¶
func (e EnvironmentInfoResponseValidationError) Key() bool
Key function returns key value.
func (EnvironmentInfoResponseValidationError) Reason ¶
func (e EnvironmentInfoResponseValidationError) Reason() string
Reason function returns reason value.
type EnvironmentListResponse ¶
type EnvironmentListResponse struct { // Environments returned. Environments []*Environment `protobuf:"bytes,1,rep,name=environments,proto3" json:"environments,omitempty"` // contains filtered or unexported fields }
EnvironmentListResponse with a list of selected environments.
func (*EnvironmentListResponse) Descriptor
deprecated
func (*EnvironmentListResponse) Descriptor() ([]byte, []int)
Deprecated: Use EnvironmentListResponse.ProtoReflect.Descriptor instead.
func (*EnvironmentListResponse) GetEnvironments ¶
func (x *EnvironmentListResponse) GetEnvironments() []*Environment
func (*EnvironmentListResponse) ProtoMessage ¶
func (*EnvironmentListResponse) ProtoMessage()
func (*EnvironmentListResponse) ProtoReflect ¶
func (x *EnvironmentListResponse) ProtoReflect() protoreflect.Message
func (*EnvironmentListResponse) Reset ¶
func (x *EnvironmentListResponse) Reset()
func (*EnvironmentListResponse) String ¶
func (x *EnvironmentListResponse) String() string
func (*EnvironmentListResponse) Validate ¶
func (m *EnvironmentListResponse) Validate() error
Validate checks the field values on EnvironmentListResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*EnvironmentListResponse) ValidateAll ¶ added in v0.11.0
func (m *EnvironmentListResponse) ValidateAll() error
ValidateAll checks the field values on EnvironmentListResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EnvironmentListResponseMultiError, or nil if none found.
type EnvironmentListResponseMultiError ¶ added in v0.11.0
type EnvironmentListResponseMultiError []error
EnvironmentListResponseMultiError is an error wrapping multiple validation errors returned by EnvironmentListResponse.ValidateAll() if the designated constraints aren't met.
func (EnvironmentListResponseMultiError) AllErrors ¶ added in v0.11.0
func (m EnvironmentListResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EnvironmentListResponseMultiError) Error ¶ added in v0.11.0
func (m EnvironmentListResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EnvironmentListResponseValidationError ¶
type EnvironmentListResponseValidationError struct {
// contains filtered or unexported fields
}
EnvironmentListResponseValidationError is the validation error returned by EnvironmentListResponse.Validate if the designated constraints aren't met.
func (EnvironmentListResponseValidationError) Cause ¶
func (e EnvironmentListResponseValidationError) Cause() error
Cause function returns cause value.
func (EnvironmentListResponseValidationError) Error ¶
func (e EnvironmentListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (EnvironmentListResponseValidationError) ErrorName ¶
func (e EnvironmentListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (EnvironmentListResponseValidationError) Field ¶
func (e EnvironmentListResponseValidationError) Field() string
Field function returns field value.
func (EnvironmentListResponseValidationError) Key ¶
func (e EnvironmentListResponseValidationError) Key() bool
Key function returns key value.
func (EnvironmentListResponseValidationError) Reason ¶
func (e EnvironmentListResponseValidationError) Reason() string
Reason function returns reason value.
type EnvironmentMultiError ¶ added in v0.11.0
type EnvironmentMultiError []error
EnvironmentMultiError is an error wrapping multiple validation errors returned by Environment.ValidateAll() if the designated constraints aren't met.
func (EnvironmentMultiError) AllErrors ¶ added in v0.11.0
func (m EnvironmentMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EnvironmentMultiError) Error ¶ added in v0.11.0
func (m EnvironmentMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EnvironmentQuotaResponse ¶
type EnvironmentQuotaResponse struct { // EnvironmentId with the environment identifier. EnvironmentId string `protobuf:"bytes,1,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"` // AccountName with the account name. AccountName string `protobuf:"bytes,2,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"` // Name of the environment. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // Description of the purpose of this environment. Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // Quota used and available on this environment. Quota *Quota `protobuf:"bytes,5,opt,name=quota,proto3" json:"quota,omitempty"` // contains filtered or unexported fields }
EnvironmentQuotaResponse message containing quota information about a given environment.
func (*EnvironmentQuotaResponse) Descriptor
deprecated
func (*EnvironmentQuotaResponse) Descriptor() ([]byte, []int)
Deprecated: Use EnvironmentQuotaResponse.ProtoReflect.Descriptor instead.
func (*EnvironmentQuotaResponse) GetAccountName ¶
func (x *EnvironmentQuotaResponse) GetAccountName() string
func (*EnvironmentQuotaResponse) GetDescription ¶
func (x *EnvironmentQuotaResponse) GetDescription() string
func (*EnvironmentQuotaResponse) GetEnvironmentId ¶
func (x *EnvironmentQuotaResponse) GetEnvironmentId() string
func (*EnvironmentQuotaResponse) GetName ¶
func (x *EnvironmentQuotaResponse) GetName() string
func (*EnvironmentQuotaResponse) GetQuota ¶
func (x *EnvironmentQuotaResponse) GetQuota() *Quota
func (*EnvironmentQuotaResponse) ProtoMessage ¶
func (*EnvironmentQuotaResponse) ProtoMessage()
func (*EnvironmentQuotaResponse) ProtoReflect ¶
func (x *EnvironmentQuotaResponse) ProtoReflect() protoreflect.Message
func (*EnvironmentQuotaResponse) Reset ¶
func (x *EnvironmentQuotaResponse) Reset()
func (*EnvironmentQuotaResponse) String ¶
func (x *EnvironmentQuotaResponse) String() string
func (*EnvironmentQuotaResponse) Validate ¶
func (m *EnvironmentQuotaResponse) Validate() error
Validate checks the field values on EnvironmentQuotaResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*EnvironmentQuotaResponse) ValidateAll ¶ added in v0.11.0
func (m *EnvironmentQuotaResponse) ValidateAll() error
ValidateAll checks the field values on EnvironmentQuotaResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EnvironmentQuotaResponseMultiError, or nil if none found.
type EnvironmentQuotaResponseMultiError ¶ added in v0.11.0
type EnvironmentQuotaResponseMultiError []error
EnvironmentQuotaResponseMultiError is an error wrapping multiple validation errors returned by EnvironmentQuotaResponse.ValidateAll() if the designated constraints aren't met.
func (EnvironmentQuotaResponseMultiError) AllErrors ¶ added in v0.11.0
func (m EnvironmentQuotaResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EnvironmentQuotaResponseMultiError) Error ¶ added in v0.11.0
func (m EnvironmentQuotaResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EnvironmentQuotaResponseValidationError ¶
type EnvironmentQuotaResponseValidationError struct {
// contains filtered or unexported fields
}
EnvironmentQuotaResponseValidationError is the validation error returned by EnvironmentQuotaResponse.Validate if the designated constraints aren't met.
func (EnvironmentQuotaResponseValidationError) Cause ¶
func (e EnvironmentQuotaResponseValidationError) Cause() error
Cause function returns cause value.
func (EnvironmentQuotaResponseValidationError) Error ¶
func (e EnvironmentQuotaResponseValidationError) Error() string
Error satisfies the builtin error interface
func (EnvironmentQuotaResponseValidationError) ErrorName ¶
func (e EnvironmentQuotaResponseValidationError) ErrorName() string
ErrorName returns error name.
func (EnvironmentQuotaResponseValidationError) Field ¶
func (e EnvironmentQuotaResponseValidationError) Field() string
Field function returns field value.
func (EnvironmentQuotaResponseValidationError) Key ¶
func (e EnvironmentQuotaResponseValidationError) Key() bool
Key function returns key value.
func (EnvironmentQuotaResponseValidationError) Reason ¶
func (e EnvironmentQuotaResponseValidationError) Reason() string
Reason function returns reason value.
type EnvironmentSelector ¶
type EnvironmentSelector struct { // EnvironmentQualifiedName (EnvQN) contains both the account name and the environment name as // <account_name>/<env_name>. EnvironmentQualifiedName string `` /* 135-byte string literal not displayed */ // AccountId with the account identifier. AccountId string `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // EnvironmentId with the environment identifier EnvironmentId string `protobuf:"bytes,3,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"` // contains filtered or unexported fields }
EnvironmentSelector with information to determine the target environment. The current selected environment as specified in the JWT will be used otherwise. Keep in mind that we can select an environment through EnvironmentQualifiedName or through the combination of AccountId and EnvironmentId, being incompatible the use of the two selectors at the same time
func (*EnvironmentSelector) Descriptor
deprecated
func (*EnvironmentSelector) Descriptor() ([]byte, []int)
Deprecated: Use EnvironmentSelector.ProtoReflect.Descriptor instead.
func (*EnvironmentSelector) GetAccountId ¶ added in v0.2.0
func (x *EnvironmentSelector) GetAccountId() string
func (*EnvironmentSelector) GetEnvironmentId ¶ added in v0.2.0
func (x *EnvironmentSelector) GetEnvironmentId() string
func (*EnvironmentSelector) GetEnvironmentQualifiedName ¶
func (x *EnvironmentSelector) GetEnvironmentQualifiedName() string
func (*EnvironmentSelector) ProtoMessage ¶
func (*EnvironmentSelector) ProtoMessage()
func (*EnvironmentSelector) ProtoReflect ¶
func (x *EnvironmentSelector) ProtoReflect() protoreflect.Message
func (*EnvironmentSelector) Reset ¶
func (x *EnvironmentSelector) Reset()
func (*EnvironmentSelector) String ¶
func (x *EnvironmentSelector) String() string
func (*EnvironmentSelector) Validate ¶
func (m *EnvironmentSelector) Validate() error
Validate checks the field values on EnvironmentSelector with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*EnvironmentSelector) ValidateAll ¶ added in v0.11.0
func (m *EnvironmentSelector) ValidateAll() error
ValidateAll checks the field values on EnvironmentSelector with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EnvironmentSelectorMultiError, or nil if none found.
type EnvironmentSelectorMultiError ¶ added in v0.11.0
type EnvironmentSelectorMultiError []error
EnvironmentSelectorMultiError is an error wrapping multiple validation errors returned by EnvironmentSelector.ValidateAll() if the designated constraints aren't met.
func (EnvironmentSelectorMultiError) AllErrors ¶ added in v0.11.0
func (m EnvironmentSelectorMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EnvironmentSelectorMultiError) Error ¶ added in v0.11.0
func (m EnvironmentSelectorMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EnvironmentSelectorValidationError ¶
type EnvironmentSelectorValidationError struct {
// contains filtered or unexported fields
}
EnvironmentSelectorValidationError is the validation error returned by EnvironmentSelector.Validate if the designated constraints aren't met.
func (EnvironmentSelectorValidationError) Cause ¶
func (e EnvironmentSelectorValidationError) Cause() error
Cause function returns cause value.
func (EnvironmentSelectorValidationError) Error ¶
func (e EnvironmentSelectorValidationError) Error() string
Error satisfies the builtin error interface
func (EnvironmentSelectorValidationError) ErrorName ¶
func (e EnvironmentSelectorValidationError) ErrorName() string
ErrorName returns error name.
func (EnvironmentSelectorValidationError) Field ¶
func (e EnvironmentSelectorValidationError) Field() string
Field function returns field value.
func (EnvironmentSelectorValidationError) Key ¶
func (e EnvironmentSelectorValidationError) Key() bool
Key function returns key value.
func (EnvironmentSelectorValidationError) Reason ¶
func (e EnvironmentSelectorValidationError) Reason() string
Reason function returns reason value.
type EnvironmentState ¶ added in v0.12.0
type EnvironmentState int32
EnvironmentState with the the state of the environment calculated based on the zone status from the user's operational point of view.
const ( // UnknownEnvState with and indeterminate state EnvironmentState_UNKNOWN_ENV_STATE EnvironmentState = 0 // Active represents an environment that is ready to use with or without applications deployed on it. EnvironmentState_ACTIVE EnvironmentState = 1 // Creating represents an environment that is currently being created on the target zone. EnvironmentState_CREATING EnvironmentState = 2 // Unavailable represents an environment which is deployed on a zone that is not longer online. As soon as the // zone becomes online the environment will automatically transition to other states. EnvironmentState_UNAVAILABLE EnvironmentState = 3 // Error state represents an environment in which an error has been detected. Extra information will be associated // to the environment in the form of an error message. EnvironmentState_ERROR EnvironmentState = 4 )
func (EnvironmentState) Descriptor ¶ added in v0.12.0
func (EnvironmentState) Descriptor() protoreflect.EnumDescriptor
func (EnvironmentState) Enum ¶ added in v0.12.0
func (x EnvironmentState) Enum() *EnvironmentState
func (EnvironmentState) EnumDescriptor
deprecated
added in
v0.12.0
func (EnvironmentState) EnumDescriptor() ([]byte, []int)
Deprecated: Use EnvironmentState.Descriptor instead.
func (EnvironmentState) Number ¶ added in v0.12.0
func (x EnvironmentState) Number() protoreflect.EnumNumber
func (EnvironmentState) String ¶ added in v0.12.0
func (x EnvironmentState) String() string
func (EnvironmentState) Type ¶ added in v0.12.0
func (EnvironmentState) Type() protoreflect.EnumType
type EnvironmentUser ¶
type EnvironmentUser struct { // Username with the user login. Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // Email. Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` // Role of the user in the environment. Role string `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"` // contains filtered or unexported fields }
EnvironmentUser with the information of a user with access to a given environment.
func (*EnvironmentUser) Descriptor
deprecated
func (*EnvironmentUser) Descriptor() ([]byte, []int)
Deprecated: Use EnvironmentUser.ProtoReflect.Descriptor instead.
func (*EnvironmentUser) GetEmail ¶
func (x *EnvironmentUser) GetEmail() string
func (*EnvironmentUser) GetRole ¶
func (x *EnvironmentUser) GetRole() string
func (*EnvironmentUser) GetUsername ¶
func (x *EnvironmentUser) GetUsername() string
func (*EnvironmentUser) ProtoMessage ¶
func (*EnvironmentUser) ProtoMessage()
func (*EnvironmentUser) ProtoReflect ¶
func (x *EnvironmentUser) ProtoReflect() protoreflect.Message
func (*EnvironmentUser) Reset ¶
func (x *EnvironmentUser) Reset()
func (*EnvironmentUser) String ¶
func (x *EnvironmentUser) String() string
func (*EnvironmentUser) Validate ¶
func (m *EnvironmentUser) Validate() error
Validate checks the field values on EnvironmentUser with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*EnvironmentUser) ValidateAll ¶ added in v0.11.0
func (m *EnvironmentUser) ValidateAll() error
ValidateAll checks the field values on EnvironmentUser with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EnvironmentUserMultiError, or nil if none found.
type EnvironmentUserMultiError ¶ added in v0.11.0
type EnvironmentUserMultiError []error
EnvironmentUserMultiError is an error wrapping multiple validation errors returned by EnvironmentUser.ValidateAll() if the designated constraints aren't met.
func (EnvironmentUserMultiError) AllErrors ¶ added in v0.11.0
func (m EnvironmentUserMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EnvironmentUserMultiError) Error ¶ added in v0.11.0
func (m EnvironmentUserMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EnvironmentUserValidationError ¶
type EnvironmentUserValidationError struct {
// contains filtered or unexported fields
}
EnvironmentUserValidationError is the validation error returned by EnvironmentUser.Validate if the designated constraints aren't met.
func (EnvironmentUserValidationError) Cause ¶
func (e EnvironmentUserValidationError) Cause() error
Cause function returns cause value.
func (EnvironmentUserValidationError) Error ¶
func (e EnvironmentUserValidationError) Error() string
Error satisfies the builtin error interface
func (EnvironmentUserValidationError) ErrorName ¶
func (e EnvironmentUserValidationError) ErrorName() string
ErrorName returns error name.
func (EnvironmentUserValidationError) Field ¶
func (e EnvironmentUserValidationError) Field() string
Field function returns field value.
func (EnvironmentUserValidationError) Key ¶
func (e EnvironmentUserValidationError) Key() bool
Key function returns key value.
func (EnvironmentUserValidationError) Reason ¶
func (e EnvironmentUserValidationError) Reason() string
Reason function returns reason value.
type EnvironmentValidationError ¶
type EnvironmentValidationError struct {
// contains filtered or unexported fields
}
EnvironmentValidationError is the validation error returned by Environment.Validate if the designated constraints aren't met.
func (EnvironmentValidationError) Cause ¶
func (e EnvironmentValidationError) Cause() error
Cause function returns cause value.
func (EnvironmentValidationError) Error ¶
func (e EnvironmentValidationError) Error() string
Error satisfies the builtin error interface
func (EnvironmentValidationError) ErrorName ¶
func (e EnvironmentValidationError) ErrorName() string
ErrorName returns error name.
func (EnvironmentValidationError) Field ¶
func (e EnvironmentValidationError) Field() string
Field function returns field value.
func (EnvironmentValidationError) Key ¶
func (e EnvironmentValidationError) Key() bool
Key function returns key value.
func (EnvironmentValidationError) Reason ¶
func (e EnvironmentValidationError) Reason() string
Reason function returns reason value.
type EnvironmentsClient ¶
type EnvironmentsClient interface { // List returns all environments or the ones in the selected account. List(ctx context.Context, in *ListEnvironmentsRequest, opts ...grpc.CallOption) (*EnvironmentListResponse, error) // Quota returns usage and available capacity on a selected environment. Quota(ctx context.Context, in *EnvironmentSelector, opts ...grpc.CallOption) (*EnvironmentQuotaResponse, error) // Info returns all information about a selected environment. Info(ctx context.Context, in *EnvironmentSelector, opts ...grpc.CallOption) (*EnvironmentInfoResponse, error) // Use returns a new token for a selected environment. This operation returns a new // JWT that should be used when launching operations on a given environment. Use(ctx context.Context, in *EnvironmentSelector, opts ...grpc.CallOption) (*grpc_playground_common_go.TokenResponse, error) // Create creates new environment Create(ctx context.Context, in *CreateEnvironmentRequest, opts ...grpc.CallOption) (*Environment, error) // Remove deletes an environment Delete(ctx context.Context, in *DeleteEnvironmentRequest, opts ...grpc.CallOption) (*grpc_playground_common_go.OpResponse, error) // Update modifies the environment properties Update(ctx context.Context, in *UpdateEnvironmentRequest, opts ...grpc.CallOption) (*Environment, error) // GetKubeConfig returns the kubeconfig file required to connect to the underlying infrastructure. GetKubeConfig(ctx context.Context, in *grpc_playground_common_go.EmptyRequest, opts ...grpc.CallOption) (*KubeConfigResponse, error) // GetToken returns the user token required to connect to the underlying infrastructure. GetToken(ctx context.Context, in *grpc_playground_common_go.EmptyRequest, opts ...grpc.CallOption) (*KubeConfigTokenResponse, error) }
EnvironmentsClient is the client API for Environments service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewEnvironmentsClient ¶
func NewEnvironmentsClient(cc grpc.ClientConnInterface) EnvironmentsClient
type EnvironmentsServer ¶
type EnvironmentsServer interface { // List returns all environments or the ones in the selected account. List(context.Context, *ListEnvironmentsRequest) (*EnvironmentListResponse, error) // Quota returns usage and available capacity on a selected environment. Quota(context.Context, *EnvironmentSelector) (*EnvironmentQuotaResponse, error) // Info returns all information about a selected environment. Info(context.Context, *EnvironmentSelector) (*EnvironmentInfoResponse, error) // Use returns a new token for a selected environment. This operation returns a new // JWT that should be used when launching operations on a given environment. Use(context.Context, *EnvironmentSelector) (*grpc_playground_common_go.TokenResponse, error) // Create creates new environment Create(context.Context, *CreateEnvironmentRequest) (*Environment, error) // Remove deletes an environment Delete(context.Context, *DeleteEnvironmentRequest) (*grpc_playground_common_go.OpResponse, error) // Update modifies the environment properties Update(context.Context, *UpdateEnvironmentRequest) (*Environment, error) // GetKubeConfig returns the kubeconfig file required to connect to the underlying infrastructure. GetKubeConfig(context.Context, *grpc_playground_common_go.EmptyRequest) (*KubeConfigResponse, error) // GetToken returns the user token required to connect to the underlying infrastructure. GetToken(context.Context, *grpc_playground_common_go.EmptyRequest) (*KubeConfigTokenResponse, error) }
EnvironmentsServer is the server API for Environments service.
type KubeConfigResponse ¶ added in v0.11.0
type KubeConfigResponse struct { // AssociatedServer with the server that has been associated to the user. AssociatedServer string `protobuf:"bytes,1,opt,name=associated_server,json=associatedServer,proto3" json:"associated_server,omitempty"` // KubeConfigRaw contains the string representation of the kubeconfig file required to // connect to the platform. KubeConfigRaw string `protobuf:"bytes,2,opt,name=kube_config_raw,json=kubeConfigRaw,proto3" json:"kube_config_raw,omitempty"` // contains filtered or unexported fields }
KubeConfigResponse with the information provided to the user to connect to the underlying infrastructure.
func (*KubeConfigResponse) Descriptor
deprecated
added in
v0.11.0
func (*KubeConfigResponse) Descriptor() ([]byte, []int)
Deprecated: Use KubeConfigResponse.ProtoReflect.Descriptor instead.
func (*KubeConfigResponse) GetAssociatedServer ¶ added in v0.11.0
func (x *KubeConfigResponse) GetAssociatedServer() string
func (*KubeConfigResponse) GetKubeConfigRaw ¶ added in v0.11.0
func (x *KubeConfigResponse) GetKubeConfigRaw() string
func (*KubeConfigResponse) ProtoMessage ¶ added in v0.11.0
func (*KubeConfigResponse) ProtoMessage()
func (*KubeConfigResponse) ProtoReflect ¶ added in v0.11.0
func (x *KubeConfigResponse) ProtoReflect() protoreflect.Message
func (*KubeConfigResponse) Reset ¶ added in v0.11.0
func (x *KubeConfigResponse) Reset()
func (*KubeConfigResponse) String ¶ added in v0.11.0
func (x *KubeConfigResponse) String() string
func (*KubeConfigResponse) Validate ¶ added in v0.11.0
func (m *KubeConfigResponse) Validate() error
Validate checks the field values on KubeConfigResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*KubeConfigResponse) ValidateAll ¶ added in v0.11.0
func (m *KubeConfigResponse) ValidateAll() error
ValidateAll checks the field values on KubeConfigResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in KubeConfigResponseMultiError, or nil if none found.
type KubeConfigResponseMultiError ¶ added in v0.11.0
type KubeConfigResponseMultiError []error
KubeConfigResponseMultiError is an error wrapping multiple validation errors returned by KubeConfigResponse.ValidateAll() if the designated constraints aren't met.
func (KubeConfigResponseMultiError) AllErrors ¶ added in v0.11.0
func (m KubeConfigResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (KubeConfigResponseMultiError) Error ¶ added in v0.11.0
func (m KubeConfigResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type KubeConfigResponseValidationError ¶ added in v0.11.0
type KubeConfigResponseValidationError struct {
// contains filtered or unexported fields
}
KubeConfigResponseValidationError is the validation error returned by KubeConfigResponse.Validate if the designated constraints aren't met.
func (KubeConfigResponseValidationError) Cause ¶ added in v0.11.0
func (e KubeConfigResponseValidationError) Cause() error
Cause function returns cause value.
func (KubeConfigResponseValidationError) Error ¶ added in v0.11.0
func (e KubeConfigResponseValidationError) Error() string
Error satisfies the builtin error interface
func (KubeConfigResponseValidationError) ErrorName ¶ added in v0.11.0
func (e KubeConfigResponseValidationError) ErrorName() string
ErrorName returns error name.
func (KubeConfigResponseValidationError) Field ¶ added in v0.11.0
func (e KubeConfigResponseValidationError) Field() string
Field function returns field value.
func (KubeConfigResponseValidationError) Key ¶ added in v0.11.0
func (e KubeConfigResponseValidationError) Key() bool
Key function returns key value.
func (KubeConfigResponseValidationError) Reason ¶ added in v0.11.0
func (e KubeConfigResponseValidationError) Reason() string
Reason function returns reason value.
type KubeConfigTokenResponse ¶ added in v0.11.0
type KubeConfigTokenResponse struct { // TokenRaw contains the user token TokenRaw string `protobuf:"bytes,1,opt,name=token_raw,json=tokenRaw,proto3" json:"token_raw,omitempty"` // contains filtered or unexported fields }
KubeConfigTokenResponse with the user token.
func (*KubeConfigTokenResponse) Descriptor
deprecated
added in
v0.11.0
func (*KubeConfigTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use KubeConfigTokenResponse.ProtoReflect.Descriptor instead.
func (*KubeConfigTokenResponse) GetTokenRaw ¶ added in v0.11.0
func (x *KubeConfigTokenResponse) GetTokenRaw() string
func (*KubeConfigTokenResponse) ProtoMessage ¶ added in v0.11.0
func (*KubeConfigTokenResponse) ProtoMessage()
func (*KubeConfigTokenResponse) ProtoReflect ¶ added in v0.11.0
func (x *KubeConfigTokenResponse) ProtoReflect() protoreflect.Message
func (*KubeConfigTokenResponse) Reset ¶ added in v0.11.0
func (x *KubeConfigTokenResponse) Reset()
func (*KubeConfigTokenResponse) String ¶ added in v0.11.0
func (x *KubeConfigTokenResponse) String() string
func (*KubeConfigTokenResponse) Validate ¶ added in v0.11.0
func (m *KubeConfigTokenResponse) Validate() error
Validate checks the field values on KubeConfigTokenResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*KubeConfigTokenResponse) ValidateAll ¶ added in v0.11.0
func (m *KubeConfigTokenResponse) ValidateAll() error
ValidateAll checks the field values on KubeConfigTokenResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in KubeConfigTokenResponseMultiError, or nil if none found.
type KubeConfigTokenResponseMultiError ¶ added in v0.11.0
type KubeConfigTokenResponseMultiError []error
KubeConfigTokenResponseMultiError is an error wrapping multiple validation errors returned by KubeConfigTokenResponse.ValidateAll() if the designated constraints aren't met.
func (KubeConfigTokenResponseMultiError) AllErrors ¶ added in v0.11.0
func (m KubeConfigTokenResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (KubeConfigTokenResponseMultiError) Error ¶ added in v0.11.0
func (m KubeConfigTokenResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type KubeConfigTokenResponseValidationError ¶ added in v0.11.0
type KubeConfigTokenResponseValidationError struct {
// contains filtered or unexported fields
}
KubeConfigTokenResponseValidationError is the validation error returned by KubeConfigTokenResponse.Validate if the designated constraints aren't met.
func (KubeConfigTokenResponseValidationError) Cause ¶ added in v0.11.0
func (e KubeConfigTokenResponseValidationError) Cause() error
Cause function returns cause value.
func (KubeConfigTokenResponseValidationError) Error ¶ added in v0.11.0
func (e KubeConfigTokenResponseValidationError) Error() string
Error satisfies the builtin error interface
func (KubeConfigTokenResponseValidationError) ErrorName ¶ added in v0.11.0
func (e KubeConfigTokenResponseValidationError) ErrorName() string
ErrorName returns error name.
func (KubeConfigTokenResponseValidationError) Field ¶ added in v0.11.0
func (e KubeConfigTokenResponseValidationError) Field() string
Field function returns field value.
func (KubeConfigTokenResponseValidationError) Key ¶ added in v0.11.0
func (e KubeConfigTokenResponseValidationError) Key() bool
Key function returns key value.
func (KubeConfigTokenResponseValidationError) Reason ¶ added in v0.11.0
func (e KubeConfigTokenResponseValidationError) Reason() string
Reason function returns reason value.
type ListEnvironmentsRequest ¶
type ListEnvironmentsRequest struct { // AccountName restrict if present the returned environments to the given account. Cannot be // used in conjunction with AccountId. AccountName string `protobuf:"bytes,1,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"` // AccountId restricts if present the returned environments to the given account. Cannot be // used in conjunction with AccountName. AccountId string `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // contains filtered or unexported fields }
ListEnvironmentsRequest with information about the target account if the list is intended to be limited to a single account. The current selected account as specified in the JWT will be used otherwise.
func (*ListEnvironmentsRequest) Descriptor
deprecated
func (*ListEnvironmentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListEnvironmentsRequest.ProtoReflect.Descriptor instead.
func (*ListEnvironmentsRequest) GetAccountId ¶
func (x *ListEnvironmentsRequest) GetAccountId() string
func (*ListEnvironmentsRequest) GetAccountName ¶
func (x *ListEnvironmentsRequest) GetAccountName() string
func (*ListEnvironmentsRequest) ProtoMessage ¶
func (*ListEnvironmentsRequest) ProtoMessage()
func (*ListEnvironmentsRequest) ProtoReflect ¶
func (x *ListEnvironmentsRequest) ProtoReflect() protoreflect.Message
func (*ListEnvironmentsRequest) Reset ¶
func (x *ListEnvironmentsRequest) Reset()
func (*ListEnvironmentsRequest) String ¶
func (x *ListEnvironmentsRequest) String() string
func (*ListEnvironmentsRequest) Validate ¶
func (m *ListEnvironmentsRequest) Validate() error
Validate checks the field values on ListEnvironmentsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListEnvironmentsRequest) ValidateAll ¶ added in v0.11.0
func (m *ListEnvironmentsRequest) ValidateAll() error
ValidateAll checks the field values on ListEnvironmentsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListEnvironmentsRequestMultiError, or nil if none found.
type ListEnvironmentsRequestMultiError ¶ added in v0.11.0
type ListEnvironmentsRequestMultiError []error
ListEnvironmentsRequestMultiError is an error wrapping multiple validation errors returned by ListEnvironmentsRequest.ValidateAll() if the designated constraints aren't met.
func (ListEnvironmentsRequestMultiError) AllErrors ¶ added in v0.11.0
func (m ListEnvironmentsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListEnvironmentsRequestMultiError) Error ¶ added in v0.11.0
func (m ListEnvironmentsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListEnvironmentsRequestValidationError ¶
type ListEnvironmentsRequestValidationError struct {
// contains filtered or unexported fields
}
ListEnvironmentsRequestValidationError is the validation error returned by ListEnvironmentsRequest.Validate if the designated constraints aren't met.
func (ListEnvironmentsRequestValidationError) Cause ¶
func (e ListEnvironmentsRequestValidationError) Cause() error
Cause function returns cause value.
func (ListEnvironmentsRequestValidationError) Error ¶
func (e ListEnvironmentsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListEnvironmentsRequestValidationError) ErrorName ¶
func (e ListEnvironmentsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListEnvironmentsRequestValidationError) Field ¶
func (e ListEnvironmentsRequestValidationError) Field() string
Field function returns field value.
func (ListEnvironmentsRequestValidationError) Key ¶
func (e ListEnvironmentsRequestValidationError) Key() bool
Key function returns key value.
func (ListEnvironmentsRequestValidationError) Reason ¶
func (e ListEnvironmentsRequestValidationError) Reason() string
Reason function returns reason value.
type Quota ¶ added in v0.9.0
type Quota struct { // CpuQuota with the maximum CPU quota available for the user in Kubernetes CPU units. CpuQuota float32 `protobuf:"fixed32,2,opt,name=cpu_quota,json=cpuQuota,proto3" json:"cpu_quota,omitempty"` // UsedCpu with the number of Kubernetes CPU units used by the running user applications. UsedCpu float32 `protobuf:"fixed32,3,opt,name=used_cpu,json=usedCpu,proto3" json:"used_cpu,omitempty"` // MemoryQuota with the maximum amount of memory available for the user in MB. MemoryQuota float32 `protobuf:"fixed32,4,opt,name=memory_quota,json=memoryQuota,proto3" json:"memory_quota,omitempty"` // UsedMemory with the memory used in MB by the running user applications. UsedMemory float32 `protobuf:"fixed32,5,opt,name=used_memory,json=usedMemory,proto3" json:"used_memory,omitempty"` // StorageQuota with the maximum amount of storage available for the user in in MB. StorageQuota float32 `protobuf:"fixed32,6,opt,name=storage_quota,json=storageQuota,proto3" json:"storage_quota,omitempty"` // UsedStorage with the storage used in MB by the running user applications. UsedStorage float32 `protobuf:"fixed32,7,opt,name=used_storage,json=usedStorage,proto3" json:"used_storage,omitempty"` // contains filtered or unexported fields }
Quota message containing quota information about a given environment.
func (*Quota) Descriptor
deprecated
added in
v0.9.0
func (*Quota) GetCpuQuota ¶ added in v0.9.0
func (*Quota) GetMemoryQuota ¶ added in v0.9.0
func (*Quota) GetStorageQuota ¶ added in v0.9.0
func (*Quota) GetUsedCpu ¶ added in v0.9.0
func (*Quota) GetUsedMemory ¶ added in v0.9.0
func (*Quota) GetUsedStorage ¶ added in v0.9.0
func (*Quota) ProtoMessage ¶ added in v0.9.0
func (*Quota) ProtoMessage()
func (*Quota) ProtoReflect ¶ added in v0.9.0
func (x *Quota) ProtoReflect() protoreflect.Message
func (*Quota) Validate ¶ added in v0.9.0
Validate checks the field values on Quota with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Quota) ValidateAll ¶ added in v0.11.0
ValidateAll checks the field values on Quota with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in QuotaMultiError, or nil if none found.
type QuotaMultiError ¶ added in v0.11.0
type QuotaMultiError []error
QuotaMultiError is an error wrapping multiple validation errors returned by Quota.ValidateAll() if the designated constraints aren't met.
func (QuotaMultiError) AllErrors ¶ added in v0.11.0
func (m QuotaMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (QuotaMultiError) Error ¶ added in v0.11.0
func (m QuotaMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type QuotaValidationError ¶ added in v0.9.0
type QuotaValidationError struct {
// contains filtered or unexported fields
}
QuotaValidationError is the validation error returned by Quota.Validate if the designated constraints aren't met.
func (QuotaValidationError) Cause ¶ added in v0.9.0
func (e QuotaValidationError) Cause() error
Cause function returns cause value.
func (QuotaValidationError) Error ¶ added in v0.9.0
func (e QuotaValidationError) Error() string
Error satisfies the builtin error interface
func (QuotaValidationError) ErrorName ¶ added in v0.9.0
func (e QuotaValidationError) ErrorName() string
ErrorName returns error name.
func (QuotaValidationError) Field ¶ added in v0.9.0
func (e QuotaValidationError) Field() string
Field function returns field value.
func (QuotaValidationError) Key ¶ added in v0.9.0
func (e QuotaValidationError) Key() bool
Key function returns key value.
func (QuotaValidationError) Reason ¶ added in v0.9.0
func (e QuotaValidationError) Reason() string
Reason function returns reason value.
type UnimplementedEnvironmentsServer ¶
type UnimplementedEnvironmentsServer struct { }
UnimplementedEnvironmentsServer can be embedded to have forward compatible implementations.
func (*UnimplementedEnvironmentsServer) Create ¶ added in v0.3.0
func (*UnimplementedEnvironmentsServer) Create(context.Context, *CreateEnvironmentRequest) (*Environment, error)
func (*UnimplementedEnvironmentsServer) Delete ¶ added in v0.5.0
func (*UnimplementedEnvironmentsServer) Delete(context.Context, *DeleteEnvironmentRequest) (*grpc_playground_common_go.OpResponse, error)
func (*UnimplementedEnvironmentsServer) GetKubeConfig ¶ added in v0.11.0
func (*UnimplementedEnvironmentsServer) GetKubeConfig(context.Context, *grpc_playground_common_go.EmptyRequest) (*KubeConfigResponse, error)
func (*UnimplementedEnvironmentsServer) GetToken ¶ added in v0.11.0
func (*UnimplementedEnvironmentsServer) GetToken(context.Context, *grpc_playground_common_go.EmptyRequest) (*KubeConfigTokenResponse, error)
func (*UnimplementedEnvironmentsServer) Info ¶
func (*UnimplementedEnvironmentsServer) Info(context.Context, *EnvironmentSelector) (*EnvironmentInfoResponse, error)
func (*UnimplementedEnvironmentsServer) List ¶
func (*UnimplementedEnvironmentsServer) List(context.Context, *ListEnvironmentsRequest) (*EnvironmentListResponse, error)
func (*UnimplementedEnvironmentsServer) Quota ¶
func (*UnimplementedEnvironmentsServer) Quota(context.Context, *EnvironmentSelector) (*EnvironmentQuotaResponse, error)
func (*UnimplementedEnvironmentsServer) Update ¶ added in v0.16.0
func (*UnimplementedEnvironmentsServer) Update(context.Context, *UpdateEnvironmentRequest) (*Environment, error)
type UpdateEnvironmentRequest ¶ added in v0.16.0
type UpdateEnvironmentRequest struct { // EnvironmentQualifiedName (EnvQN) contains both the account name and the environment name as // <account_name>/<env_name>. EnvironmentQualifiedName string `` /* 135-byte string literal not displayed */ // AccountId with the account identifier. AccountId string `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // EnvironmentId with the environment identifier EnvironmentId string `protobuf:"bytes,3,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"` // UpdateDefaultAccountEnv with a flag to indicate default_account_environment flag must be updated UpdateDefaultAccountEnv bool `` /* 135-byte string literal not displayed */ // DefaultAccountEnvironment with the default_account_environment value DefaultAccountEnvironment bool `` /* 139-byte string literal not displayed */ // contains filtered or unexported fields }
UpdateEnvironmentRequest with the information required to update environment properties (primary_env flag fro now)
func (*UpdateEnvironmentRequest) Descriptor
deprecated
added in
v0.16.0
func (*UpdateEnvironmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateEnvironmentRequest.ProtoReflect.Descriptor instead.
func (*UpdateEnvironmentRequest) GetAccountId ¶ added in v0.16.0
func (x *UpdateEnvironmentRequest) GetAccountId() string
func (*UpdateEnvironmentRequest) GetDefaultAccountEnvironment ¶ added in v0.16.0
func (x *UpdateEnvironmentRequest) GetDefaultAccountEnvironment() bool
func (*UpdateEnvironmentRequest) GetEnvironmentId ¶ added in v0.16.0
func (x *UpdateEnvironmentRequest) GetEnvironmentId() string
func (*UpdateEnvironmentRequest) GetEnvironmentQualifiedName ¶ added in v0.16.0
func (x *UpdateEnvironmentRequest) GetEnvironmentQualifiedName() string
func (*UpdateEnvironmentRequest) GetUpdateDefaultAccountEnv ¶ added in v0.16.0
func (x *UpdateEnvironmentRequest) GetUpdateDefaultAccountEnv() bool
func (*UpdateEnvironmentRequest) ProtoMessage ¶ added in v0.16.0
func (*UpdateEnvironmentRequest) ProtoMessage()
func (*UpdateEnvironmentRequest) ProtoReflect ¶ added in v0.16.0
func (x *UpdateEnvironmentRequest) ProtoReflect() protoreflect.Message
func (*UpdateEnvironmentRequest) Reset ¶ added in v0.16.0
func (x *UpdateEnvironmentRequest) Reset()
func (*UpdateEnvironmentRequest) String ¶ added in v0.16.0
func (x *UpdateEnvironmentRequest) String() string
func (*UpdateEnvironmentRequest) Validate ¶ added in v0.16.0
func (m *UpdateEnvironmentRequest) Validate() error
Validate checks the field values on UpdateEnvironmentRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateEnvironmentRequest) ValidateAll ¶ added in v0.16.0
func (m *UpdateEnvironmentRequest) ValidateAll() error
ValidateAll checks the field values on UpdateEnvironmentRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateEnvironmentRequestMultiError, or nil if none found.
type UpdateEnvironmentRequestMultiError ¶ added in v0.16.0
type UpdateEnvironmentRequestMultiError []error
UpdateEnvironmentRequestMultiError is an error wrapping multiple validation errors returned by UpdateEnvironmentRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateEnvironmentRequestMultiError) AllErrors ¶ added in v0.16.0
func (m UpdateEnvironmentRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateEnvironmentRequestMultiError) Error ¶ added in v0.16.0
func (m UpdateEnvironmentRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateEnvironmentRequestValidationError ¶ added in v0.16.0
type UpdateEnvironmentRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateEnvironmentRequestValidationError is the validation error returned by UpdateEnvironmentRequest.Validate if the designated constraints aren't met.
func (UpdateEnvironmentRequestValidationError) Cause ¶ added in v0.16.0
func (e UpdateEnvironmentRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateEnvironmentRequestValidationError) Error ¶ added in v0.16.0
func (e UpdateEnvironmentRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateEnvironmentRequestValidationError) ErrorName ¶ added in v0.16.0
func (e UpdateEnvironmentRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateEnvironmentRequestValidationError) Field ¶ added in v0.16.0
func (e UpdateEnvironmentRequestValidationError) Field() string
Field function returns field value.
func (UpdateEnvironmentRequestValidationError) Key ¶ added in v0.16.0
func (e UpdateEnvironmentRequestValidationError) Key() bool
Key function returns key value.
func (UpdateEnvironmentRequestValidationError) Reason ¶ added in v0.16.0
func (e UpdateEnvironmentRequestValidationError) Reason() string
Reason function returns reason value.