Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterValidatorServiceServer(s grpc.ServiceRegistrar, srv ValidatorServiceServer)
- type Application
- func (*Application) Descriptor() ([]byte, []int)deprecated
- func (x *Application) GetComponentName() string
- func (x *Application) GetKey() string
- func (x *Application) GetPlatformName() string
- func (x *Application) GetProductName() string
- func (x *Application) GetProductVersion() string
- func (x *Application) GetStage() QualityLevel
- func (*Application) ProtoMessage()
- func (x *Application) ProtoReflect() protoreflect.Message
- func (x *Application) Reset()
- func (x *Application) String() string
- type Artifact
- func (*Artifact) Descriptor() ([]byte, []int)deprecated
- func (x *Artifact) GetId() string
- func (x *Artifact) GetKey() string
- func (x *Artifact) GetType() string
- func (*Artifact) ProtoMessage()
- func (x *Artifact) ProtoReflect() protoreflect.Message
- func (x *Artifact) Reset()
- func (x *Artifact) String() string
- type Infrastructure
- func (*Infrastructure) Descriptor() ([]byte, []int)deprecated
- func (x *Infrastructure) GetAccountId() string
- func (x *Infrastructure) GetCloudProvider() string
- func (x *Infrastructure) GetKey() string
- func (x *Infrastructure) GetRegion() string
- func (x *Infrastructure) GetServiceName() string
- func (*Infrastructure) ProtoMessage()
- func (x *Infrastructure) ProtoReflect() protoreflect.Message
- func (x *Infrastructure) Reset()
- func (x *Infrastructure) String() string
- type Meta
- type Platform
- func (*Platform) Descriptor() ([]byte, []int)deprecated
- func (x *Platform) GetKey() string
- func (x *Platform) GetName() string
- func (x *Platform) GetRegion() string
- func (x *Platform) GetServiceName() string
- func (x *Platform) GetStage() QualityLevel
- func (*Platform) ProtoMessage()
- func (x *Platform) ProtoReflect() protoreflect.Message
- func (x *Platform) Reset()
- func (x *Platform) String() string
- type Product
- func (*Product) Descriptor() ([]byte, []int)deprecated
- func (x *Product) GetComponentName() string
- func (x *Product) GetKey() string
- func (x *Product) GetName() string
- func (x *Product) GetVersion() string
- func (*Product) ProtoMessage()
- func (x *Product) ProtoReflect() protoreflect.Message
- func (x *Product) Reset()
- func (x *Product) String() string
- type QualityLevel
- func (QualityLevel) Descriptor() protoreflect.EnumDescriptor
- func (x QualityLevel) Enum() *QualityLevel
- func (QualityLevel) EnumDescriptor() ([]byte, []int)deprecated
- func (x QualityLevel) Number() protoreflect.EnumNumber
- func (x QualityLevel) String() string
- func (QualityLevel) Type() protoreflect.EnumType
- type RingLevel
- type Secret
- func (*Secret) Descriptor() ([]byte, []int)deprecated
- func (x *Secret) GetApplication() *Application
- func (x *Secret) GetArtifact() *Artifact
- func (x *Secret) GetInfrastructure() *Infrastructure
- func (x *Secret) GetMeta() *Meta
- func (m *Secret) GetPath() isSecret_Path
- func (x *Secret) GetPlatform() *Platform
- func (x *Secret) GetProduct() *Product
- func (x *Secret) GetRingLevel() RingLevel
- func (x *Secret) GetValue() *Value
- func (*Secret) ProtoMessage()
- func (x *Secret) ProtoReflect() protoreflect.Message
- func (x *Secret) Reset()
- func (x *Secret) String() string
- type Secret_Application
- type Secret_Artifact
- type Secret_Infrastructure
- type Secret_Meta
- type Secret_Platform
- type Secret_Product
- type UnimplementedValidatorServiceServer
- type UnsafeValidatorServiceServer
- type ValidateRequest
- type ValidateResponse
- type ValidatorServiceClient
- type ValidatorServiceServer
- type Value
Constants ¶
const (
ValidatorService_Validate_FullMethodName = "/cso.v1.ValidatorService/Validate"
)
Variables ¶
var ( RingLevel_name = map[int32]string{ 0: "RING_LEVEL_UNSPECIFIED", 1: "RING_LEVEL_UNKNOWN", 2: "RING_LEVEL_META", 3: "RING_LEVEL_INFRASTRUCTURE", 4: "RING_LEVEL_PLATFORM", 5: "RING_LEVEL_PRODUCT", 6: "RING_LEVEL_APPLICATION", 7: "RING_LEVEL_ARTIFACT", } RingLevel_value = map[string]int32{ "RING_LEVEL_UNSPECIFIED": 0, "RING_LEVEL_UNKNOWN": 1, "RING_LEVEL_META": 2, "RING_LEVEL_INFRASTRUCTURE": 3, "RING_LEVEL_PLATFORM": 4, "RING_LEVEL_PRODUCT": 5, "RING_LEVEL_APPLICATION": 6, "RING_LEVEL_ARTIFACT": 7, } )
Enum value maps for RingLevel.
var ( QualityLevel_name = map[int32]string{ 0: "QUALITY_LEVEL_UNSPECIFIED", 1: "QUALITY_LEVEL_UNKNOWN", 2: "QUALITY_LEVEL_PRODUCTION", 3: "QUALITY_LEVEL_STAGING", 4: "QUALITY_LEVEL_QA", 5: "QUALITY_LEVEL_DEV", } QualityLevel_value = map[string]int32{ "QUALITY_LEVEL_UNSPECIFIED": 0, "QUALITY_LEVEL_UNKNOWN": 1, "QUALITY_LEVEL_PRODUCTION": 2, "QUALITY_LEVEL_STAGING": 3, "QUALITY_LEVEL_QA": 4, "QUALITY_LEVEL_DEV": 5, } )
Enum value maps for QualityLevel.
var File_cso_v1_secret_proto protoreflect.FileDescriptor
var File_cso_v1_validator_api_proto protoreflect.FileDescriptor
var ValidatorService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cso.v1.ValidatorService", HandlerType: (*ValidatorServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Validate", Handler: _ValidatorService_Validate_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cso/v1/validator_api.proto", }
ValidatorService_ServiceDesc is the grpc.ServiceDesc for ValidatorService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterValidatorServiceServer ¶
func RegisterValidatorServiceServer(s grpc.ServiceRegistrar, srv ValidatorServiceServer)
Types ¶
type Application ¶
type Application struct { // Quality level Stage QualityLevel `protobuf:"varint,1,opt,name=stage,proto3,enum=cso.v1.QualityLevel" json:"stage,omitempty"` // Platform name PlatformName string `protobuf:"bytes,2,opt,name=platform_name,json=platformName,proto3" json:"platform_name,omitempty"` // Product name ProductName string `protobuf:"bytes,3,opt,name=product_name,json=productName,proto3" json:"product_name,omitempty"` // Product version ProductVersion string `protobuf:"bytes,4,opt,name=product_version,json=productVersion,proto3" json:"product_version,omitempty"` // Product component name ComponentName string `protobuf:"bytes,5,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"` // Key is the free part of the namming specification. Key string `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
Application describes application secret path components.
func (*Application) Descriptor
deprecated
func (*Application) Descriptor() ([]byte, []int)
Deprecated: Use Application.ProtoReflect.Descriptor instead.
func (*Application) GetComponentName ¶
func (x *Application) GetComponentName() string
func (*Application) GetKey ¶
func (x *Application) GetKey() string
func (*Application) GetPlatformName ¶
func (x *Application) GetPlatformName() string
func (*Application) GetProductName ¶
func (x *Application) GetProductName() string
func (*Application) GetProductVersion ¶
func (x *Application) GetProductVersion() string
func (*Application) GetStage ¶
func (x *Application) GetStage() QualityLevel
func (*Application) ProtoMessage ¶
func (*Application) ProtoMessage()
func (*Application) ProtoReflect ¶
func (x *Application) ProtoReflect() protoreflect.Message
func (*Application) Reset ¶
func (x *Application) Reset()
func (*Application) String ¶
func (x *Application) String() string
type Artifact ¶
type Artifact struct { // Artifact type Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // Artifact id Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // Key is the free part of the namming specification. Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
Artifact describes artifact secret path components.
func (*Artifact) Descriptor
deprecated
func (*Artifact) ProtoMessage ¶
func (*Artifact) ProtoMessage()
func (*Artifact) ProtoReflect ¶
func (x *Artifact) ProtoReflect() protoreflect.Message
type Infrastructure ¶
type Infrastructure struct { // Cloud provider name CloudProvider string `protobuf:"bytes,1,opt,name=cloud_provider,json=cloudProvider,proto3" json:"cloud_provider,omitempty"` // Cloud provider account identifier or alias AccountId string `protobuf:"bytes,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"` // Cloud provider region Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"` // Service name used ServiceName string `protobuf:"bytes,4,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` // Key is the free part of the namming specification. Key string `protobuf:"bytes,5,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
Infrastructure describes infrastructure secret path components.
func (*Infrastructure) Descriptor
deprecated
func (*Infrastructure) Descriptor() ([]byte, []int)
Deprecated: Use Infrastructure.ProtoReflect.Descriptor instead.
func (*Infrastructure) GetAccountId ¶
func (x *Infrastructure) GetAccountId() string
func (*Infrastructure) GetCloudProvider ¶
func (x *Infrastructure) GetCloudProvider() string
func (*Infrastructure) GetKey ¶
func (x *Infrastructure) GetKey() string
func (*Infrastructure) GetRegion ¶
func (x *Infrastructure) GetRegion() string
func (*Infrastructure) GetServiceName ¶
func (x *Infrastructure) GetServiceName() string
func (*Infrastructure) ProtoMessage ¶
func (*Infrastructure) ProtoMessage()
func (*Infrastructure) ProtoReflect ¶
func (x *Infrastructure) ProtoReflect() protoreflect.Message
func (*Infrastructure) Reset ¶
func (x *Infrastructure) Reset()
func (*Infrastructure) String ¶
func (x *Infrastructure) String() string
type Meta ¶
type Meta struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
Meta describes secrets of secrets path components.
func (*Meta) Descriptor
deprecated
func (*Meta) ProtoMessage ¶
func (*Meta) ProtoMessage()
func (*Meta) ProtoReflect ¶
func (x *Meta) ProtoReflect() protoreflect.Message
type Platform ¶
type Platform struct { // Quality level Stage QualityLevel `protobuf:"varint,1,opt,name=stage,proto3,enum=cso.v1.QualityLevel" json:"stage,omitempty"` // Paltform name Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Platform region Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"` // Platform service name ServiceName string `protobuf:"bytes,4,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` // Key is the free part of the namming specification. Key string `protobuf:"bytes,5,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
Platform describes platform secret path components.
func (*Platform) Descriptor
deprecated
func (*Platform) GetServiceName ¶
func (*Platform) GetStage ¶
func (x *Platform) GetStage() QualityLevel
func (*Platform) ProtoMessage ¶
func (*Platform) ProtoMessage()
func (*Platform) ProtoReflect ¶
func (x *Platform) ProtoReflect() protoreflect.Message
type Product ¶
type Product struct { // Product name Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Product version Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // Product component name ComponentName string `protobuf:"bytes,3,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"` // Key is the free part of the namming specification. Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
Product describes product secret path components.
func (*Product) Descriptor
deprecated
func (*Product) GetComponentName ¶
func (*Product) GetVersion ¶
func (*Product) ProtoMessage ¶
func (*Product) ProtoMessage()
func (*Product) ProtoReflect ¶
func (x *Product) ProtoReflect() protoreflect.Message
type QualityLevel ¶
type QualityLevel int32
QualityLevel enumerates entity quality level values.
const ( // Default value when no enumeration is specified. QualityLevel_QUALITY_LEVEL_UNSPECIFIED QualityLevel = 0 // Explicitly Unknown object value. QualityLevel_QUALITY_LEVEL_UNKNOWN QualityLevel = 1 // Production grade QualityLevel_QUALITY_LEVEL_PRODUCTION QualityLevel = 2 // Staging grade QualityLevel_QUALITY_LEVEL_STAGING QualityLevel = 3 // QA Grade QualityLevel_QUALITY_LEVEL_QA QualityLevel = 4 // Dev grade QualityLevel_QUALITY_LEVEL_DEV QualityLevel = 5 )
func (QualityLevel) Descriptor ¶
func (QualityLevel) Descriptor() protoreflect.EnumDescriptor
func (QualityLevel) Enum ¶
func (x QualityLevel) Enum() *QualityLevel
func (QualityLevel) EnumDescriptor
deprecated
func (QualityLevel) EnumDescriptor() ([]byte, []int)
Deprecated: Use QualityLevel.Descriptor instead.
func (QualityLevel) Number ¶
func (x QualityLevel) Number() protoreflect.EnumNumber
func (QualityLevel) String ¶
func (x QualityLevel) String() string
func (QualityLevel) Type ¶
func (QualityLevel) Type() protoreflect.EnumType
type RingLevel ¶
type RingLevel int32
RingLevel enumerates all cso ring level values.
const ( // Default value when no enumeration is specified. RingLevel_RING_LEVEL_UNSPECIFIED RingLevel = 0 // Explicitly Unknown object value. RingLevel_RING_LEVEL_UNKNOWN RingLevel = 1 // Defines secret used by secrets. RingLevel_RING_LEVEL_META RingLevel = 2 // Defines infrastructure level secrets. RingLevel_RING_LEVEL_INFRASTRUCTURE RingLevel = 3 // Defines platform level secrets. RingLevel_RING_LEVEL_PLATFORM RingLevel = 4 // Defines product level secrets. RingLevel_RING_LEVEL_PRODUCT RingLevel = 5 // Defines application level secrets. RingLevel_RING_LEVEL_APPLICATION RingLevel = 6 // Defines artifact level secrets. RingLevel_RING_LEVEL_ARTIFACT RingLevel = 7 )
func (RingLevel) Descriptor ¶
func (RingLevel) Descriptor() protoreflect.EnumDescriptor
func (RingLevel) EnumDescriptor
deprecated
func (RingLevel) Number ¶
func (x RingLevel) Number() protoreflect.EnumNumber
func (RingLevel) Type ¶
func (RingLevel) Type() protoreflect.EnumType
type Secret ¶
type Secret struct { RingLevel RingLevel `protobuf:"varint,1,opt,name=ring_level,json=ringLevel,proto3,enum=cso.v1.RingLevel" json:"ring_level,omitempty"` Value *Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // Types that are assignable to Path: // // *Secret_Meta // *Secret_Infrastructure // *Secret_Platform // *Secret_Product // *Secret_Application // *Secret_Artifact Path isSecret_Path `protobuf_oneof:"path"` // contains filtered or unexported fields }
Secret represents secret value and metadata.
func (*Secret) Descriptor
deprecated
func (*Secret) GetApplication ¶
func (x *Secret) GetApplication() *Application
func (*Secret) GetArtifact ¶
func (*Secret) GetInfrastructure ¶
func (x *Secret) GetInfrastructure() *Infrastructure
func (*Secret) GetPlatform ¶
func (*Secret) GetProduct ¶
func (*Secret) GetRingLevel ¶
func (*Secret) ProtoMessage ¶
func (*Secret) ProtoMessage()
func (*Secret) ProtoReflect ¶
func (x *Secret) ProtoReflect() protoreflect.Message
type Secret_Application ¶
type Secret_Application struct {
Application *Application `protobuf:"bytes,14,opt,name=application,proto3,oneof"`
}
type Secret_Artifact ¶
type Secret_Artifact struct {
Artifact *Artifact `protobuf:"bytes,15,opt,name=artifact,proto3,oneof"`
}
type Secret_Infrastructure ¶
type Secret_Infrastructure struct {
Infrastructure *Infrastructure `protobuf:"bytes,11,opt,name=infrastructure,proto3,oneof"`
}
type Secret_Meta ¶
type Secret_Meta struct {
Meta *Meta `protobuf:"bytes,10,opt,name=meta,proto3,oneof"`
}
type Secret_Platform ¶
type Secret_Platform struct {
Platform *Platform `protobuf:"bytes,12,opt,name=platform,proto3,oneof"`
}
type Secret_Product ¶
type Secret_Product struct {
Product *Product `protobuf:"bytes,13,opt,name=product,proto3,oneof"`
}
type UnimplementedValidatorServiceServer ¶
type UnimplementedValidatorServiceServer struct{}
UnimplementedValidatorServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedValidatorServiceServer) Validate ¶
func (UnimplementedValidatorServiceServer) Validate(context.Context, *ValidateRequest) (*ValidateResponse, error)
type UnsafeValidatorServiceServer ¶
type UnsafeValidatorServiceServer interface {
// contains filtered or unexported methods
}
UnsafeValidatorServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ValidatorServiceServer will result in compilation errors.
type ValidateRequest ¶
type ValidateRequest struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*ValidateRequest) Descriptor
deprecated
func (*ValidateRequest) Descriptor() ([]byte, []int)
Deprecated: Use ValidateRequest.ProtoReflect.Descriptor instead.
func (*ValidateRequest) GetPath ¶
func (x *ValidateRequest) GetPath() string
func (*ValidateRequest) ProtoMessage ¶
func (*ValidateRequest) ProtoMessage()
func (*ValidateRequest) ProtoReflect ¶
func (x *ValidateRequest) ProtoReflect() protoreflect.Message
func (*ValidateRequest) Reset ¶
func (x *ValidateRequest) Reset()
func (*ValidateRequest) String ¶
func (x *ValidateRequest) String() string
type ValidateResponse ¶
type ValidateResponse struct { Secret *Secret `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"` // contains filtered or unexported fields }
ValidateResponse returns the secret path evaluation.
func (*ValidateResponse) Descriptor
deprecated
func (*ValidateResponse) Descriptor() ([]byte, []int)
Deprecated: Use ValidateResponse.ProtoReflect.Descriptor instead.
func (*ValidateResponse) GetSecret ¶
func (x *ValidateResponse) GetSecret() *Secret
func (*ValidateResponse) ProtoMessage ¶
func (*ValidateResponse) ProtoMessage()
func (*ValidateResponse) ProtoReflect ¶
func (x *ValidateResponse) ProtoReflect() protoreflect.Message
func (*ValidateResponse) Reset ¶
func (x *ValidateResponse) Reset()
func (*ValidateResponse) String ¶
func (x *ValidateResponse) String() string
type ValidatorServiceClient ¶
type ValidatorServiceClient interface { // Validate given path according to CSO sepcification. Validate(ctx context.Context, in *ValidateRequest, opts ...grpc.CallOption) (*ValidateResponse, error) }
ValidatorServiceClient is the client API for ValidatorService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewValidatorServiceClient ¶
func NewValidatorServiceClient(cc grpc.ClientConnInterface) ValidatorServiceClient
type ValidatorServiceServer ¶
type ValidatorServiceServer interface { // Validate given path according to CSO sepcification. Validate(context.Context, *ValidateRequest) (*ValidateResponse, error) // contains filtered or unexported methods }
ValidatorServiceServer is the server API for ValidatorService service. All implementations must embed UnimplementedValidatorServiceServer for forward compatibility
type Value ¶
type Value struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Body []byte `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
Value represents an encoded secret value.
func (*Value) Descriptor
deprecated
func (*Value) ProtoMessage ¶
func (*Value) ProtoMessage()
func (*Value) ProtoReflect ¶
func (x *Value) ProtoReflect() protoreflect.Message