secretsmanagerplugin

package
v0.0.0-kmdagger1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_secretsmanager_proto protoreflect.FileDescriptor
View Source
var SecretsManager_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "secretsmanagerplugin.SecretsManager",
	HandlerType: (*SecretsManagerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetSecret",
			Handler:    _SecretsManager_GetSecret_Handler,
		},
		{
			MethodName: "SetSecret",
			Handler:    _SecretsManager_SetSecret_Handler,
		},
		{
			MethodName: "DeleteSecret",
			Handler:    _SecretsManager_DeleteSecret_Handler,
		},
		{
			MethodName: "ListSecrets",
			Handler:    _SecretsManager_ListSecrets_Handler,
		},
		{
			MethodName: "RenameSecret",
			Handler:    _SecretsManager_RenameSecret_Handler,
		},
		{
			MethodName: "GetAllSecrets",
			Handler:    _SecretsManager_GetAllSecrets_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "secretsmanager.proto",
}

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

Functions

func RegisterSecretsManagerServer

func RegisterSecretsManagerServer(s grpc.ServiceRegistrar, srv SecretsManagerServer)

Types

type DeleteSecretRequest

type DeleteSecretRequest struct {
	KeyDescriptor *Key `protobuf:"bytes,1,opt,name=keyDescriptor,proto3" json:"keyDescriptor,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteSecretRequest) Descriptor deprecated

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

Deprecated: Use DeleteSecretRequest.ProtoReflect.Descriptor instead.

func (*DeleteSecretRequest) GetKeyDescriptor

func (x *DeleteSecretRequest) GetKeyDescriptor() *Key

func (*DeleteSecretRequest) ProtoMessage

func (*DeleteSecretRequest) ProtoMessage()

func (*DeleteSecretRequest) ProtoReflect

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

func (*DeleteSecretRequest) Reset

func (x *DeleteSecretRequest) Reset()

func (*DeleteSecretRequest) String

func (x *DeleteSecretRequest) String() string

type DeleteSecretResponse

type DeleteSecretResponse struct {
	UserFriendlyError string `protobuf:"bytes,1,opt,name=userFriendlyError,proto3" json:"userFriendlyError,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteSecretResponse) Descriptor deprecated

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

Deprecated: Use DeleteSecretResponse.ProtoReflect.Descriptor instead.

func (*DeleteSecretResponse) GetUserFriendlyError

func (x *DeleteSecretResponse) GetUserFriendlyError() string

func (*DeleteSecretResponse) ProtoMessage

func (*DeleteSecretResponse) ProtoMessage()

func (*DeleteSecretResponse) ProtoReflect

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

func (*DeleteSecretResponse) Reset

func (x *DeleteSecretResponse) Reset()

func (*DeleteSecretResponse) String

func (x *DeleteSecretResponse) String() string

type GetAllSecretsRequest

type GetAllSecretsRequest struct {
	// contains filtered or unexported fields
}

func (*GetAllSecretsRequest) Descriptor deprecated

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

Deprecated: Use GetAllSecretsRequest.ProtoReflect.Descriptor instead.

func (*GetAllSecretsRequest) ProtoMessage

func (*GetAllSecretsRequest) ProtoMessage()

func (*GetAllSecretsRequest) ProtoReflect

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

func (*GetAllSecretsRequest) Reset

func (x *GetAllSecretsRequest) Reset()

func (*GetAllSecretsRequest) String

func (x *GetAllSecretsRequest) String() string

type GetAllSecretsResponse

type GetAllSecretsResponse struct {
	UserFriendlyError string  `protobuf:"bytes,1,opt,name=userFriendlyError,proto3" json:"userFriendlyError,omitempty"`
	Items             []*Item `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAllSecretsResponse) Descriptor deprecated

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

Deprecated: Use GetAllSecretsResponse.ProtoReflect.Descriptor instead.

func (*GetAllSecretsResponse) GetItems

func (x *GetAllSecretsResponse) GetItems() []*Item

func (*GetAllSecretsResponse) GetUserFriendlyError

func (x *GetAllSecretsResponse) GetUserFriendlyError() string

func (*GetAllSecretsResponse) ProtoMessage

func (*GetAllSecretsResponse) ProtoMessage()

func (*GetAllSecretsResponse) ProtoReflect

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

func (*GetAllSecretsResponse) Reset

func (x *GetAllSecretsResponse) Reset()

func (*GetAllSecretsResponse) String

func (x *GetAllSecretsResponse) String() string

type GetSecretRequest

type GetSecretRequest struct {
	KeyDescriptor *Key `protobuf:"bytes,1,opt,name=keyDescriptor,proto3" json:"keyDescriptor,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSecretRequest) Descriptor deprecated

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

Deprecated: Use GetSecretRequest.ProtoReflect.Descriptor instead.

func (*GetSecretRequest) GetKeyDescriptor

func (x *GetSecretRequest) GetKeyDescriptor() *Key

func (*GetSecretRequest) ProtoMessage

func (*GetSecretRequest) ProtoMessage()

func (*GetSecretRequest) ProtoReflect

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

func (*GetSecretRequest) Reset

func (x *GetSecretRequest) Reset()

func (*GetSecretRequest) String

func (x *GetSecretRequest) String() string

type GetSecretResponse

type GetSecretResponse struct {
	UserFriendlyError string `protobuf:"bytes,1,opt,name=userFriendlyError,proto3" json:"userFriendlyError,omitempty"`
	DecryptedValue    string `protobuf:"bytes,2,opt,name=decryptedValue,proto3" json:"decryptedValue,omitempty"`
	Exists            bool   `protobuf:"varint,3,opt,name=exists,proto3" json:"exists,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSecretResponse) Descriptor deprecated

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

Deprecated: Use GetSecretResponse.ProtoReflect.Descriptor instead.

func (*GetSecretResponse) GetDecryptedValue

func (x *GetSecretResponse) GetDecryptedValue() string

func (*GetSecretResponse) GetExists

func (x *GetSecretResponse) GetExists() bool

func (*GetSecretResponse) GetUserFriendlyError

func (x *GetSecretResponse) GetUserFriendlyError() string

func (*GetSecretResponse) ProtoMessage

func (*GetSecretResponse) ProtoMessage()

func (*GetSecretResponse) ProtoReflect

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

func (*GetSecretResponse) Reset

func (x *GetSecretResponse) Reset()

func (*GetSecretResponse) String

func (x *GetSecretResponse) String() string

type Item

type Item struct {
	Key   *Key   `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Item) Descriptor deprecated

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

Deprecated: Use Item.ProtoReflect.Descriptor instead.

func (*Item) GetKey

func (x *Item) GetKey() *Key

func (*Item) GetValue

func (x *Item) GetValue() string

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) ProtoReflect

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

func (*Item) Reset

func (x *Item) Reset()

func (*Item) String

func (x *Item) String() string

type Key

type Key struct {
	OrgId     int64  `protobuf:"varint,1,opt,name=orgId,proto3" json:"orgId,omitempty"`
	Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Type      string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Key) Descriptor deprecated

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

Deprecated: Use Key.ProtoReflect.Descriptor instead.

func (*Key) GetNamespace

func (x *Key) GetNamespace() string

func (*Key) GetOrgId

func (x *Key) GetOrgId() int64

func (*Key) GetType

func (x *Key) GetType() string

func (*Key) ProtoMessage

func (*Key) ProtoMessage()

func (*Key) ProtoReflect

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

func (*Key) Reset

func (x *Key) Reset()

func (*Key) String

func (x *Key) String() string

type ListSecretsRequest

type ListSecretsRequest struct {
	KeyDescriptor    *Key `protobuf:"bytes,1,opt,name=keyDescriptor,proto3" json:"keyDescriptor,omitempty"`
	AllOrganizations bool `protobuf:"varint,2,opt,name=allOrganizations,proto3" json:"allOrganizations,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSecretsRequest) Descriptor deprecated

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

Deprecated: Use ListSecretsRequest.ProtoReflect.Descriptor instead.

func (*ListSecretsRequest) GetAllOrganizations

func (x *ListSecretsRequest) GetAllOrganizations() bool

func (*ListSecretsRequest) GetKeyDescriptor

func (x *ListSecretsRequest) GetKeyDescriptor() *Key

func (*ListSecretsRequest) ProtoMessage

func (*ListSecretsRequest) ProtoMessage()

func (*ListSecretsRequest) ProtoReflect

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

func (*ListSecretsRequest) Reset

func (x *ListSecretsRequest) Reset()

func (*ListSecretsRequest) String

func (x *ListSecretsRequest) String() string

type ListSecretsResponse

type ListSecretsResponse struct {
	UserFriendlyError string `protobuf:"bytes,1,opt,name=userFriendlyError,proto3" json:"userFriendlyError,omitempty"`
	Keys              []*Key `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSecretsResponse) Descriptor deprecated

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

Deprecated: Use ListSecretsResponse.ProtoReflect.Descriptor instead.

func (*ListSecretsResponse) GetKeys

func (x *ListSecretsResponse) GetKeys() []*Key

func (*ListSecretsResponse) GetUserFriendlyError

func (x *ListSecretsResponse) GetUserFriendlyError() string

func (*ListSecretsResponse) ProtoMessage

func (*ListSecretsResponse) ProtoMessage()

func (*ListSecretsResponse) ProtoReflect

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

func (*ListSecretsResponse) Reset

func (x *ListSecretsResponse) Reset()

func (*ListSecretsResponse) String

func (x *ListSecretsResponse) String() string

type RenameSecretRequest

type RenameSecretRequest struct {
	KeyDescriptor *Key   `protobuf:"bytes,1,opt,name=keyDescriptor,proto3" json:"keyDescriptor,omitempty"`
	NewNamespace  string `protobuf:"bytes,2,opt,name=newNamespace,proto3" json:"newNamespace,omitempty"`
	// contains filtered or unexported fields
}

func (*RenameSecretRequest) Descriptor deprecated

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

Deprecated: Use RenameSecretRequest.ProtoReflect.Descriptor instead.

func (*RenameSecretRequest) GetKeyDescriptor

func (x *RenameSecretRequest) GetKeyDescriptor() *Key

func (*RenameSecretRequest) GetNewNamespace

func (x *RenameSecretRequest) GetNewNamespace() string

func (*RenameSecretRequest) ProtoMessage

func (*RenameSecretRequest) ProtoMessage()

func (*RenameSecretRequest) ProtoReflect

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

func (*RenameSecretRequest) Reset

func (x *RenameSecretRequest) Reset()

func (*RenameSecretRequest) String

func (x *RenameSecretRequest) String() string

type RenameSecretResponse

type RenameSecretResponse struct {
	UserFriendlyError string `protobuf:"bytes,1,opt,name=userFriendlyError,proto3" json:"userFriendlyError,omitempty"`
	// contains filtered or unexported fields
}

func (*RenameSecretResponse) Descriptor deprecated

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

Deprecated: Use RenameSecretResponse.ProtoReflect.Descriptor instead.

func (*RenameSecretResponse) GetUserFriendlyError

func (x *RenameSecretResponse) GetUserFriendlyError() string

func (*RenameSecretResponse) ProtoMessage

func (*RenameSecretResponse) ProtoMessage()

func (*RenameSecretResponse) ProtoReflect

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

func (*RenameSecretResponse) Reset

func (x *RenameSecretResponse) Reset()

func (*RenameSecretResponse) String

func (x *RenameSecretResponse) String() string

type SecretsManagerClient

type SecretsManagerClient interface {
	GetSecret(ctx context.Context, in *GetSecretRequest, opts ...grpc.CallOption) (*GetSecretResponse, error)
	SetSecret(ctx context.Context, in *SetSecretRequest, opts ...grpc.CallOption) (*SetSecretResponse, error)
	DeleteSecret(ctx context.Context, in *DeleteSecretRequest, opts ...grpc.CallOption) (*DeleteSecretResponse, error)
	ListSecrets(ctx context.Context, in *ListSecretsRequest, opts ...grpc.CallOption) (*ListSecretsResponse, error)
	RenameSecret(ctx context.Context, in *RenameSecretRequest, opts ...grpc.CallOption) (*RenameSecretResponse, error)
	GetAllSecrets(ctx context.Context, in *GetAllSecretsRequest, opts ...grpc.CallOption) (*GetAllSecretsResponse, error)
}

SecretsManagerClient is the client API for SecretsManager 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 SecretsManagerGRPCClient

type SecretsManagerGRPCClient struct {
	SecretsManagerClient
}

func (*SecretsManagerGRPCClient) DeleteSecret

Del deletes an item from the store.

func (*SecretsManagerGRPCClient) GetAllSecrets

Get all items from the store

func (*SecretsManagerGRPCClient) GetSecret

Get an item from the store

func (*SecretsManagerGRPCClient) ListSecrets

Keys get all keys for a given namespace.

func (*SecretsManagerGRPCClient) RenameSecret

Rename an item in the store

func (*SecretsManagerGRPCClient) SetSecret

Set an item in the store

type SecretsManagerGRPCPlugin

type SecretsManagerGRPCPlugin struct {
	plugin.NetRPCUnsupportedPlugin
}

func (*SecretsManagerGRPCPlugin) GRPCClient

func (p *SecretsManagerGRPCPlugin) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)

func (*SecretsManagerGRPCPlugin) GRPCServer

func (p *SecretsManagerGRPCPlugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error

type SecretsManagerPlugin

type SecretsManagerPlugin interface {
	SecretsManagerClient
}

type SecretsManagerServer

type SecretsManagerServer interface {
	GetSecret(context.Context, *GetSecretRequest) (*GetSecretResponse, error)
	SetSecret(context.Context, *SetSecretRequest) (*SetSecretResponse, error)
	DeleteSecret(context.Context, *DeleteSecretRequest) (*DeleteSecretResponse, error)
	ListSecrets(context.Context, *ListSecretsRequest) (*ListSecretsResponse, error)
	RenameSecret(context.Context, *RenameSecretRequest) (*RenameSecretResponse, error)
	GetAllSecrets(context.Context, *GetAllSecretsRequest) (*GetAllSecretsResponse, error)
	// contains filtered or unexported methods
}

SecretsManagerServer is the server API for SecretsManager service. All implementations must embed UnimplementedSecretsManagerServer for forward compatibility

type SetSecretRequest

type SetSecretRequest struct {
	KeyDescriptor *Key   `protobuf:"bytes,1,opt,name=keyDescriptor,proto3" json:"keyDescriptor,omitempty"`
	Value         string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*SetSecretRequest) Descriptor deprecated

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

Deprecated: Use SetSecretRequest.ProtoReflect.Descriptor instead.

func (*SetSecretRequest) GetKeyDescriptor

func (x *SetSecretRequest) GetKeyDescriptor() *Key

func (*SetSecretRequest) GetValue

func (x *SetSecretRequest) GetValue() string

func (*SetSecretRequest) ProtoMessage

func (*SetSecretRequest) ProtoMessage()

func (*SetSecretRequest) ProtoReflect

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

func (*SetSecretRequest) Reset

func (x *SetSecretRequest) Reset()

func (*SetSecretRequest) String

func (x *SetSecretRequest) String() string

type SetSecretResponse

type SetSecretResponse struct {
	UserFriendlyError string `protobuf:"bytes,1,opt,name=userFriendlyError,proto3" json:"userFriendlyError,omitempty"`
	// contains filtered or unexported fields
}

func (*SetSecretResponse) Descriptor deprecated

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

Deprecated: Use SetSecretResponse.ProtoReflect.Descriptor instead.

func (*SetSecretResponse) GetUserFriendlyError

func (x *SetSecretResponse) GetUserFriendlyError() string

func (*SetSecretResponse) ProtoMessage

func (*SetSecretResponse) ProtoMessage()

func (*SetSecretResponse) ProtoReflect

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

func (*SetSecretResponse) Reset

func (x *SetSecretResponse) Reset()

func (*SetSecretResponse) String

func (x *SetSecretResponse) String() string

type UnimplementedSecretsManagerServer

type UnimplementedSecretsManagerServer struct {
}

UnimplementedSecretsManagerServer must be embedded to have forward compatible implementations.

func (UnimplementedSecretsManagerServer) DeleteSecret

func (UnimplementedSecretsManagerServer) GetAllSecrets

func (UnimplementedSecretsManagerServer) GetSecret

func (UnimplementedSecretsManagerServer) ListSecrets

func (UnimplementedSecretsManagerServer) RenameSecret

func (UnimplementedSecretsManagerServer) SetSecret

type UnsafeSecretsManagerServer

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

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

Jump to

Keyboard shortcuts

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