secrets

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SecretTypes_name = map[int32]string{
		0: "SECRET",
		1: "REGISTRY",
	}
	SecretTypes_value = map[string]int32{
		"SECRET":   0,
		"REGISTRY": 1,
	}
)

Enum value maps for SecretTypes.

View Source
var File_pkg_secrets_protocol_proto protoreflect.FileDescriptor
View Source
var File_pkg_secrets_secrets_proto protoreflect.FileDescriptor
View Source
var SecretsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "secrets.SecretsService",
	HandlerType: (*SecretsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateBucket",
			Handler:    _SecretsService_CreateBucket_Handler,
		},
		{
			MethodName: "DeleteBucket",
			Handler:    _SecretsService_DeleteBucket_Handler,
		},
		{
			MethodName: "StoreSecret",
			Handler:    _SecretsService_StoreSecret_Handler,
		},
		{
			MethodName: "RetrieveSecret",
			Handler:    _SecretsService_RetrieveSecret_Handler,
		},
		{
			MethodName: "DeleteSecret",
			Handler:    _SecretsService_DeleteSecret_Handler,
		},
		{
			MethodName: "GetSecrets",
			Handler:    _SecretsService_GetSecrets_Handler,
		},
		{
			MethodName: "GetSecretsWithData",
			Handler:    _SecretsService_GetSecretsWithData_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/secrets/protocol.proto",
}

SecretsService_ServiceDesc is the grpc.ServiceDesc for SecretsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterSecretsServiceServer

func RegisterSecretsServiceServer(s grpc.ServiceRegistrar, srv SecretsServiceServer)

Types

type GetSecretsDataResponse

type GetSecretsDataResponse struct {
	Secrets []*GetSecretsDataResponse_Secret `protobuf:"bytes,1,rep,name=secrets,proto3" json:"secrets,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSecretsDataResponse) Descriptor deprecated

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

Deprecated: Use GetSecretsDataResponse.ProtoReflect.Descriptor instead.

func (*GetSecretsDataResponse) GetSecrets

func (*GetSecretsDataResponse) ProtoMessage

func (*GetSecretsDataResponse) ProtoMessage()

func (*GetSecretsDataResponse) ProtoReflect

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

func (*GetSecretsDataResponse) Reset

func (x *GetSecretsDataResponse) Reset()

func (*GetSecretsDataResponse) String

func (x *GetSecretsDataResponse) String() string

type GetSecretsDataResponse_Secret

type GetSecretsDataResponse_Secret struct {
	Name *string `protobuf:"bytes,1,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Data []byte  `protobuf:"bytes,2,opt,name=data,proto3,oneof" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSecretsDataResponse_Secret) Descriptor deprecated

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

Deprecated: Use GetSecretsDataResponse_Secret.ProtoReflect.Descriptor instead.

func (*GetSecretsDataResponse_Secret) GetData

func (x *GetSecretsDataResponse_Secret) GetData() []byte

func (*GetSecretsDataResponse_Secret) GetName

func (*GetSecretsDataResponse_Secret) ProtoMessage

func (*GetSecretsDataResponse_Secret) ProtoMessage()

func (*GetSecretsDataResponse_Secret) ProtoReflect

func (*GetSecretsDataResponse_Secret) Reset

func (x *GetSecretsDataResponse_Secret) Reset()

func (*GetSecretsDataResponse_Secret) String

type GetSecretsRequest

type GetSecretsRequest struct {
	Namespace *string      `protobuf:"bytes,1,opt,name=namespace,proto3,oneof" json:"namespace,omitempty"`
	Stype     *SecretTypes `protobuf:"varint,2,opt,name=stype,proto3,enum=secrets.SecretTypes,oneof" json:"stype,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSecretsRequest) Descriptor deprecated

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

Deprecated: Use GetSecretsRequest.ProtoReflect.Descriptor instead.

func (*GetSecretsRequest) GetNamespace

func (x *GetSecretsRequest) GetNamespace() string

func (*GetSecretsRequest) GetStype

func (x *GetSecretsRequest) GetStype() SecretTypes

func (*GetSecretsRequest) ProtoMessage

func (*GetSecretsRequest) ProtoMessage()

func (*GetSecretsRequest) ProtoReflect

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

func (*GetSecretsRequest) Reset

func (x *GetSecretsRequest) Reset()

func (*GetSecretsRequest) String

func (x *GetSecretsRequest) String() string

type GetSecretsResponse

type GetSecretsResponse struct {
	Secrets []*GetSecretsResponse_Secret `protobuf:"bytes,1,rep,name=secrets,proto3" json:"secrets,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSecretsResponse) Descriptor deprecated

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

Deprecated: Use GetSecretsResponse.ProtoReflect.Descriptor instead.

func (*GetSecretsResponse) GetSecrets

func (x *GetSecretsResponse) GetSecrets() []*GetSecretsResponse_Secret

func (*GetSecretsResponse) ProtoMessage

func (*GetSecretsResponse) ProtoMessage()

func (*GetSecretsResponse) ProtoReflect

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

func (*GetSecretsResponse) Reset

func (x *GetSecretsResponse) Reset()

func (*GetSecretsResponse) String

func (x *GetSecretsResponse) String() string

type GetSecretsResponse_Secret

type GetSecretsResponse_Secret struct {
	Name *string `protobuf:"bytes,1,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSecretsResponse_Secret) Descriptor deprecated

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

Deprecated: Use GetSecretsResponse_Secret.ProtoReflect.Descriptor instead.

func (*GetSecretsResponse_Secret) GetName

func (x *GetSecretsResponse_Secret) GetName() string

func (*GetSecretsResponse_Secret) ProtoMessage

func (*GetSecretsResponse_Secret) ProtoMessage()

func (*GetSecretsResponse_Secret) ProtoReflect

func (*GetSecretsResponse_Secret) Reset

func (x *GetSecretsResponse_Secret) Reset()

func (*GetSecretsResponse_Secret) String

func (x *GetSecretsResponse_Secret) String() string

type SecretTypes

type SecretTypes int32
const (
	SecretTypes_SECRET   SecretTypes = 0
	SecretTypes_REGISTRY SecretTypes = 1
)

func (SecretTypes) Descriptor

func (SecretTypes) Enum

func (x SecretTypes) Enum() *SecretTypes

func (SecretTypes) EnumDescriptor deprecated

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

Deprecated: Use SecretTypes.Descriptor instead.

func (SecretTypes) Number

func (x SecretTypes) Number() protoreflect.EnumNumber

func (SecretTypes) String

func (x SecretTypes) String() string

func (SecretTypes) Type

type SecretsCreateBucketRequest

type SecretsCreateBucketRequest struct {
	Namespace *string `protobuf:"bytes,1,opt,name=namespace,proto3,oneof" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*SecretsCreateBucketRequest) Descriptor deprecated

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

Deprecated: Use SecretsCreateBucketRequest.ProtoReflect.Descriptor instead.

func (*SecretsCreateBucketRequest) GetNamespace

func (x *SecretsCreateBucketRequest) GetNamespace() string

func (*SecretsCreateBucketRequest) ProtoMessage

func (*SecretsCreateBucketRequest) ProtoMessage()

func (*SecretsCreateBucketRequest) ProtoReflect

func (*SecretsCreateBucketRequest) Reset

func (x *SecretsCreateBucketRequest) Reset()

func (*SecretsCreateBucketRequest) String

func (x *SecretsCreateBucketRequest) String() string

type SecretsCreateBucketResponse

type SecretsCreateBucketResponse struct {
	Pkey []byte `protobuf:"bytes,1,opt,name=pkey,proto3,oneof" json:"pkey,omitempty"`
	// contains filtered or unexported fields
}

func (*SecretsCreateBucketResponse) Descriptor deprecated

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

Deprecated: Use SecretsCreateBucketResponse.ProtoReflect.Descriptor instead.

func (*SecretsCreateBucketResponse) GetPkey

func (x *SecretsCreateBucketResponse) GetPkey() []byte

func (*SecretsCreateBucketResponse) ProtoMessage

func (*SecretsCreateBucketResponse) ProtoMessage()

func (*SecretsCreateBucketResponse) ProtoReflect

func (*SecretsCreateBucketResponse) Reset

func (x *SecretsCreateBucketResponse) Reset()

func (*SecretsCreateBucketResponse) String

func (x *SecretsCreateBucketResponse) String() string

type SecretsDeleteBucketRequest

type SecretsDeleteBucketRequest struct {
	Namespace *string `protobuf:"bytes,1,opt,name=namespace,proto3,oneof" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*SecretsDeleteBucketRequest) Descriptor deprecated

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

Deprecated: Use SecretsDeleteBucketRequest.ProtoReflect.Descriptor instead.

func (*SecretsDeleteBucketRequest) GetNamespace

func (x *SecretsDeleteBucketRequest) GetNamespace() string

func (*SecretsDeleteBucketRequest) ProtoMessage

func (*SecretsDeleteBucketRequest) ProtoMessage()

func (*SecretsDeleteBucketRequest) ProtoReflect

func (*SecretsDeleteBucketRequest) Reset

func (x *SecretsDeleteBucketRequest) Reset()

func (*SecretsDeleteBucketRequest) String

func (x *SecretsDeleteBucketRequest) String() string

type SecretsDeleteRequest

type SecretsDeleteRequest struct {
	Namespace *string      `protobuf:"bytes,1,opt,name=namespace,proto3,oneof" json:"namespace,omitempty"`
	Name      *string      `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Stype     *SecretTypes `protobuf:"varint,3,opt,name=stype,proto3,enum=secrets.SecretTypes,oneof" json:"stype,omitempty"`
	// contains filtered or unexported fields
}

func (*SecretsDeleteRequest) Descriptor deprecated

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

Deprecated: Use SecretsDeleteRequest.ProtoReflect.Descriptor instead.

func (*SecretsDeleteRequest) GetName

func (x *SecretsDeleteRequest) GetName() string

func (*SecretsDeleteRequest) GetNamespace

func (x *SecretsDeleteRequest) GetNamespace() string

func (*SecretsDeleteRequest) GetStype

func (x *SecretsDeleteRequest) GetStype() SecretTypes

func (*SecretsDeleteRequest) ProtoMessage

func (*SecretsDeleteRequest) ProtoMessage()

func (*SecretsDeleteRequest) ProtoReflect

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

func (*SecretsDeleteRequest) Reset

func (x *SecretsDeleteRequest) Reset()

func (*SecretsDeleteRequest) String

func (x *SecretsDeleteRequest) String() string

type SecretsDeleteResponse

type SecretsDeleteResponse struct {
	Count *int32 `protobuf:"varint,1,opt,name=count,proto3,oneof" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*SecretsDeleteResponse) Descriptor deprecated

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

Deprecated: Use SecretsDeleteResponse.ProtoReflect.Descriptor instead.

func (*SecretsDeleteResponse) GetCount

func (x *SecretsDeleteResponse) GetCount() int32

func (*SecretsDeleteResponse) ProtoMessage

func (*SecretsDeleteResponse) ProtoMessage()

func (*SecretsDeleteResponse) ProtoReflect

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

func (*SecretsDeleteResponse) Reset

func (x *SecretsDeleteResponse) Reset()

func (*SecretsDeleteResponse) String

func (x *SecretsDeleteResponse) String() string

type SecretsRetrieveRequest

type SecretsRetrieveRequest struct {
	Namespace *string `protobuf:"bytes,1,opt,name=namespace,proto3,oneof" json:"namespace,omitempty"`
	Name      *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*SecretsRetrieveRequest) Descriptor deprecated

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

Deprecated: Use SecretsRetrieveRequest.ProtoReflect.Descriptor instead.

func (*SecretsRetrieveRequest) GetName

func (x *SecretsRetrieveRequest) GetName() string

func (*SecretsRetrieveRequest) GetNamespace

func (x *SecretsRetrieveRequest) GetNamespace() string

func (*SecretsRetrieveRequest) ProtoMessage

func (*SecretsRetrieveRequest) ProtoMessage()

func (*SecretsRetrieveRequest) ProtoReflect

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

func (*SecretsRetrieveRequest) Reset

func (x *SecretsRetrieveRequest) Reset()

func (*SecretsRetrieveRequest) String

func (x *SecretsRetrieveRequest) String() string

type SecretsRetrieveResponse

type SecretsRetrieveResponse struct {
	Data []byte `protobuf:"bytes,3,opt,name=data,proto3,oneof" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*SecretsRetrieveResponse) Descriptor deprecated

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

Deprecated: Use SecretsRetrieveResponse.ProtoReflect.Descriptor instead.

func (*SecretsRetrieveResponse) GetData

func (x *SecretsRetrieveResponse) GetData() []byte

func (*SecretsRetrieveResponse) ProtoMessage

func (*SecretsRetrieveResponse) ProtoMessage()

func (*SecretsRetrieveResponse) ProtoReflect

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

func (*SecretsRetrieveResponse) Reset

func (x *SecretsRetrieveResponse) Reset()

func (*SecretsRetrieveResponse) String

func (x *SecretsRetrieveResponse) String() string

type SecretsServiceClient

type SecretsServiceClient interface {
	CreateBucket(ctx context.Context, in *SecretsCreateBucketRequest, opts ...grpc.CallOption) (*SecretsCreateBucketResponse, error)
	DeleteBucket(ctx context.Context, in *SecretsDeleteBucketRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	StoreSecret(ctx context.Context, in *SecretsStoreRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	RetrieveSecret(ctx context.Context, in *SecretsRetrieveRequest, opts ...grpc.CallOption) (*SecretsRetrieveResponse, error)
	DeleteSecret(ctx context.Context, in *SecretsDeleteRequest, opts ...grpc.CallOption) (*SecretsDeleteResponse, error)
	GetSecrets(ctx context.Context, in *GetSecretsRequest, opts ...grpc.CallOption) (*GetSecretsResponse, error)
	GetSecretsWithData(ctx context.Context, in *GetSecretsRequest, opts ...grpc.CallOption) (*GetSecretsDataResponse, error)
}

SecretsServiceClient is the client API for SecretsService 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 SecretsServiceServer

SecretsServiceServer is the server API for SecretsService service. All implementations must embed UnimplementedSecretsServiceServer for forward compatibility

type SecretsStoreRequest

type SecretsStoreRequest struct {
	Namespace *string      `protobuf:"bytes,1,opt,name=namespace,proto3,oneof" json:"namespace,omitempty"`
	Name      *string      `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
	Data      []byte       `protobuf:"bytes,3,opt,name=data,proto3,oneof" json:"data,omitempty"`
	Stype     *SecretTypes `protobuf:"varint,4,opt,name=stype,proto3,enum=secrets.SecretTypes,oneof" json:"stype,omitempty"`
	// contains filtered or unexported fields
}

func (*SecretsStoreRequest) Descriptor deprecated

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

Deprecated: Use SecretsStoreRequest.ProtoReflect.Descriptor instead.

func (*SecretsStoreRequest) GetData

func (x *SecretsStoreRequest) GetData() []byte

func (*SecretsStoreRequest) GetName

func (x *SecretsStoreRequest) GetName() string

func (*SecretsStoreRequest) GetNamespace

func (x *SecretsStoreRequest) GetNamespace() string

func (*SecretsStoreRequest) GetStype

func (x *SecretsStoreRequest) GetStype() SecretTypes

func (*SecretsStoreRequest) ProtoMessage

func (*SecretsStoreRequest) ProtoMessage()

func (*SecretsStoreRequest) ProtoReflect

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

func (*SecretsStoreRequest) Reset

func (x *SecretsStoreRequest) Reset()

func (*SecretsStoreRequest) String

func (x *SecretsStoreRequest) String() string

type UnimplementedSecretsServiceServer

type UnimplementedSecretsServiceServer struct {
}

UnimplementedSecretsServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSecretsServiceServer) DeleteBucket

func (UnimplementedSecretsServiceServer) DeleteSecret

func (UnimplementedSecretsServiceServer) GetSecrets

func (UnimplementedSecretsServiceServer) GetSecretsWithData

func (UnimplementedSecretsServiceServer) RetrieveSecret

func (UnimplementedSecretsServiceServer) StoreSecret

type UnsafeSecretsServiceServer

type UnsafeSecretsServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeSecretsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SecretsServiceServer will result in compilation errors.

Directories

Path Synopsis
ent

Jump to

Keyboard shortcuts

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