csov1

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ValidatorService_Validate_FullMethodName = "/cso.v1.ValidatorService/Validate"
)

Variables

View Source
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.

View Source
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.

View Source
var File_cso_v1_secret_proto protoreflect.FileDescriptor
View Source
var File_cso_v1_validator_api_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Artifact.ProtoReflect.Descriptor instead.

func (*Artifact) GetId

func (x *Artifact) GetId() string

func (*Artifact) GetKey

func (x *Artifact) GetKey() string

func (*Artifact) GetType

func (x *Artifact) GetType() string

func (*Artifact) ProtoMessage

func (*Artifact) ProtoMessage()

func (*Artifact) ProtoReflect

func (x *Artifact) ProtoReflect() protoreflect.Message

func (*Artifact) Reset

func (x *Artifact) Reset()

func (*Artifact) String

func (x *Artifact) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Meta.ProtoReflect.Descriptor instead.

func (*Meta) GetKey

func (x *Meta) GetKey() string

func (*Meta) ProtoMessage

func (*Meta) ProtoMessage()

func (*Meta) ProtoReflect

func (x *Meta) ProtoReflect() protoreflect.Message

func (*Meta) Reset

func (x *Meta) Reset()

func (*Meta) String

func (x *Meta) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Platform.ProtoReflect.Descriptor instead.

func (*Platform) GetKey

func (x *Platform) GetKey() string

func (*Platform) GetName

func (x *Platform) GetName() string

func (*Platform) GetRegion

func (x *Platform) GetRegion() string

func (*Platform) GetServiceName

func (x *Platform) GetServiceName() string

func (*Platform) GetStage

func (x *Platform) GetStage() QualityLevel

func (*Platform) ProtoMessage

func (*Platform) ProtoMessage()

func (*Platform) ProtoReflect

func (x *Platform) ProtoReflect() protoreflect.Message

func (*Platform) Reset

func (x *Platform) Reset()

func (*Platform) String

func (x *Platform) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Product.ProtoReflect.Descriptor instead.

func (*Product) GetComponentName

func (x *Product) GetComponentName() string

func (*Product) GetKey

func (x *Product) GetKey() string

func (*Product) GetName

func (x *Product) GetName() string

func (*Product) GetVersion

func (x *Product) GetVersion() string

func (*Product) ProtoMessage

func (*Product) ProtoMessage()

func (*Product) ProtoReflect

func (x *Product) ProtoReflect() protoreflect.Message

func (*Product) Reset

func (x *Product) Reset()

func (*Product) String

func (x *Product) String() string

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) Enum

func (x QualityLevel) Enum() *QualityLevel

func (QualityLevel) EnumDescriptor deprecated

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

Deprecated: Use QualityLevel.Descriptor instead.

func (QualityLevel) Number

func (QualityLevel) String

func (x QualityLevel) String() string

func (QualityLevel) Type

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) Enum

func (x RingLevel) Enum() *RingLevel

func (RingLevel) EnumDescriptor deprecated

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

Deprecated: Use RingLevel.Descriptor instead.

func (RingLevel) Number

func (x RingLevel) Number() protoreflect.EnumNumber

func (RingLevel) String

func (x RingLevel) String() string

func (RingLevel) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Secret.ProtoReflect.Descriptor instead.

func (*Secret) GetApplication

func (x *Secret) GetApplication() *Application

func (*Secret) GetArtifact

func (x *Secret) GetArtifact() *Artifact

func (*Secret) GetInfrastructure

func (x *Secret) GetInfrastructure() *Infrastructure

func (*Secret) GetMeta

func (x *Secret) GetMeta() *Meta

func (*Secret) GetPath

func (m *Secret) GetPath() isSecret_Path

func (*Secret) GetPlatform

func (x *Secret) GetPlatform() *Platform

func (*Secret) GetProduct

func (x *Secret) GetProduct() *Product

func (*Secret) GetRingLevel

func (x *Secret) GetRingLevel() RingLevel

func (*Secret) GetValue

func (x *Secret) GetValue() *Value

func (*Secret) ProtoMessage

func (*Secret) ProtoMessage()

func (*Secret) ProtoReflect

func (x *Secret) ProtoReflect() protoreflect.Message

func (*Secret) Reset

func (x *Secret) Reset()

func (*Secret) String

func (x *Secret) String() string

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

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetBody

func (x *Value) GetBody() []byte

func (*Value) GetType

func (x *Value) GetType() string

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) ProtoReflect

func (x *Value) ProtoReflect() protoreflect.Message

func (*Value) Reset

func (x *Value) Reset()

func (*Value) String

func (x *Value) String() string

Jump to

Keyboard shortcuts

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