secrets

package
v0.3.42 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 30 Imported by: 0

Documentation

Overview

Package secrets is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	SecretsManager_ListSecrets_FullMethodName         = "/prodvana.environment.SecretsManager/ListSecrets"
	SecretsManager_ListSecretVersions_FullMethodName  = "/prodvana.environment.SecretsManager/ListSecretVersions"
	SecretsManager_SetSecret_FullMethodName           = "/prodvana.environment.SecretsManager/SetSecret"
	SecretsManager_DeleteSecret_FullMethodName        = "/prodvana.environment.SecretsManager/DeleteSecret"
	SecretsManager_DeleteSecretVersion_FullMethodName = "/prodvana.environment.SecretsManager/DeleteSecretVersion"
)

Variables

View Source
var File_prodvana_secrets_secrets_manager_proto protoreflect.FileDescriptor
View Source
var SecretsManager_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "prodvana.environment.SecretsManager",
	HandlerType: (*SecretsManagerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListSecrets",
			Handler:    _SecretsManager_ListSecrets_Handler,
		},
		{
			MethodName: "ListSecretVersions",
			Handler:    _SecretsManager_ListSecretVersions_Handler,
		},
		{
			MethodName: "SetSecret",
			Handler:    _SecretsManager_SetSecret_Handler,
		},
		{
			MethodName: "DeleteSecret",
			Handler:    _SecretsManager_DeleteSecret_Handler,
		},
		{
			MethodName: "DeleteSecretVersion",
			Handler:    _SecretsManager_DeleteSecretVersion_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "prodvana/secrets/secrets_manager.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 RegisterSecretsManagerHandler

func RegisterSecretsManagerHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterSecretsManagerHandler registers the http handlers for service SecretsManager to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterSecretsManagerHandlerClient

func RegisterSecretsManagerHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SecretsManagerClient) error

RegisterSecretsManagerHandlerClient registers the http handlers for service SecretsManager to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SecretsManagerClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SecretsManagerClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SecretsManagerClient" to call the correct interceptors.

func RegisterSecretsManagerHandlerFromEndpoint

func RegisterSecretsManagerHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterSecretsManagerHandlerFromEndpoint is same as RegisterSecretsManagerHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterSecretsManagerHandlerServer

func RegisterSecretsManagerHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SecretsManagerServer) error

RegisterSecretsManagerHandlerServer registers the http handlers for service SecretsManager to "mux". UnaryRPC :call SecretsManagerServer 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 RegisterSecretsManagerHandlerFromEndpoint instead.

func RegisterSecretsManagerServer

func RegisterSecretsManagerServer(s grpc.ServiceRegistrar, srv SecretsManagerServer)

Types

type DeleteSecretReq

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

func (*DeleteSecretReq) Descriptor deprecated

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

Deprecated: Use DeleteSecretReq.ProtoReflect.Descriptor instead.

func (*DeleteSecretReq) GetKey

func (x *DeleteSecretReq) GetKey() string

func (*DeleteSecretReq) ProtoMessage

func (*DeleteSecretReq) ProtoMessage()

func (*DeleteSecretReq) ProtoReflect

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

func (*DeleteSecretReq) Reset

func (x *DeleteSecretReq) Reset()

func (*DeleteSecretReq) String

func (x *DeleteSecretReq) String() string

func (*DeleteSecretReq) Validate

func (m *DeleteSecretReq) Validate() error

Validate checks the field values on DeleteSecretReq 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 (*DeleteSecretReq) ValidateAll

func (m *DeleteSecretReq) ValidateAll() error

ValidateAll checks the field values on DeleteSecretReq 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 DeleteSecretReqMultiError, or nil if none found.

type DeleteSecretReqMultiError

type DeleteSecretReqMultiError []error

DeleteSecretReqMultiError is an error wrapping multiple validation errors returned by DeleteSecretReq.ValidateAll() if the designated constraints aren't met.

func (DeleteSecretReqMultiError) AllErrors

func (m DeleteSecretReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteSecretReqMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteSecretReqValidationError

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

DeleteSecretReqValidationError is the validation error returned by DeleteSecretReq.Validate if the designated constraints aren't met.

func (DeleteSecretReqValidationError) Cause

Cause function returns cause value.

func (DeleteSecretReqValidationError) Error

Error satisfies the builtin error interface

func (DeleteSecretReqValidationError) ErrorName

func (e DeleteSecretReqValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteSecretReqValidationError) Field

Field function returns field value.

func (DeleteSecretReqValidationError) Key

Key function returns key value.

func (DeleteSecretReqValidationError) Reason

Reason function returns reason value.

type DeleteSecretResp

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

func (*DeleteSecretResp) Descriptor deprecated

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

Deprecated: Use DeleteSecretResp.ProtoReflect.Descriptor instead.

func (*DeleteSecretResp) ProtoMessage

func (*DeleteSecretResp) ProtoMessage()

func (*DeleteSecretResp) ProtoReflect

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

func (*DeleteSecretResp) Reset

func (x *DeleteSecretResp) Reset()

func (*DeleteSecretResp) String

func (x *DeleteSecretResp) String() string

func (*DeleteSecretResp) Validate

func (m *DeleteSecretResp) Validate() error

Validate checks the field values on DeleteSecretResp 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 (*DeleteSecretResp) ValidateAll

func (m *DeleteSecretResp) ValidateAll() error

ValidateAll checks the field values on DeleteSecretResp 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 DeleteSecretRespMultiError, or nil if none found.

type DeleteSecretRespMultiError

type DeleteSecretRespMultiError []error

DeleteSecretRespMultiError is an error wrapping multiple validation errors returned by DeleteSecretResp.ValidateAll() if the designated constraints aren't met.

func (DeleteSecretRespMultiError) AllErrors

func (m DeleteSecretRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteSecretRespMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteSecretRespValidationError

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

DeleteSecretRespValidationError is the validation error returned by DeleteSecretResp.Validate if the designated constraints aren't met.

func (DeleteSecretRespValidationError) Cause

Cause function returns cause value.

func (DeleteSecretRespValidationError) Error

Error satisfies the builtin error interface

func (DeleteSecretRespValidationError) ErrorName

ErrorName returns error name.

func (DeleteSecretRespValidationError) Field

Field function returns field value.

func (DeleteSecretRespValidationError) Key

Key function returns key value.

func (DeleteSecretRespValidationError) Reason

Reason function returns reason value.

type DeleteSecretVersionReq

type DeleteSecretVersionReq struct {
	Key     string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteSecretVersionReq) Descriptor deprecated

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

Deprecated: Use DeleteSecretVersionReq.ProtoReflect.Descriptor instead.

func (*DeleteSecretVersionReq) GetKey

func (x *DeleteSecretVersionReq) GetKey() string

func (*DeleteSecretVersionReq) GetVersion

func (x *DeleteSecretVersionReq) GetVersion() string

func (*DeleteSecretVersionReq) ProtoMessage

func (*DeleteSecretVersionReq) ProtoMessage()

func (*DeleteSecretVersionReq) ProtoReflect

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

func (*DeleteSecretVersionReq) Reset

func (x *DeleteSecretVersionReq) Reset()

func (*DeleteSecretVersionReq) String

func (x *DeleteSecretVersionReq) String() string

func (*DeleteSecretVersionReq) Validate

func (m *DeleteSecretVersionReq) Validate() error

Validate checks the field values on DeleteSecretVersionReq 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 (*DeleteSecretVersionReq) ValidateAll

func (m *DeleteSecretVersionReq) ValidateAll() error

ValidateAll checks the field values on DeleteSecretVersionReq 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 DeleteSecretVersionReqMultiError, or nil if none found.

type DeleteSecretVersionReqMultiError

type DeleteSecretVersionReqMultiError []error

DeleteSecretVersionReqMultiError is an error wrapping multiple validation errors returned by DeleteSecretVersionReq.ValidateAll() if the designated constraints aren't met.

func (DeleteSecretVersionReqMultiError) AllErrors

func (m DeleteSecretVersionReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteSecretVersionReqMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteSecretVersionReqValidationError

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

DeleteSecretVersionReqValidationError is the validation error returned by DeleteSecretVersionReq.Validate if the designated constraints aren't met.

func (DeleteSecretVersionReqValidationError) Cause

Cause function returns cause value.

func (DeleteSecretVersionReqValidationError) Error

Error satisfies the builtin error interface

func (DeleteSecretVersionReqValidationError) ErrorName

ErrorName returns error name.

func (DeleteSecretVersionReqValidationError) Field

Field function returns field value.

func (DeleteSecretVersionReqValidationError) Key

Key function returns key value.

func (DeleteSecretVersionReqValidationError) Reason

Reason function returns reason value.

type DeleteSecretVersionResp

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

func (*DeleteSecretVersionResp) Descriptor deprecated

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

Deprecated: Use DeleteSecretVersionResp.ProtoReflect.Descriptor instead.

func (*DeleteSecretVersionResp) ProtoMessage

func (*DeleteSecretVersionResp) ProtoMessage()

func (*DeleteSecretVersionResp) ProtoReflect

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

func (*DeleteSecretVersionResp) Reset

func (x *DeleteSecretVersionResp) Reset()

func (*DeleteSecretVersionResp) String

func (x *DeleteSecretVersionResp) String() string

func (*DeleteSecretVersionResp) Validate

func (m *DeleteSecretVersionResp) Validate() error

Validate checks the field values on DeleteSecretVersionResp 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 (*DeleteSecretVersionResp) ValidateAll

func (m *DeleteSecretVersionResp) ValidateAll() error

ValidateAll checks the field values on DeleteSecretVersionResp 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 DeleteSecretVersionRespMultiError, or nil if none found.

type DeleteSecretVersionRespMultiError

type DeleteSecretVersionRespMultiError []error

DeleteSecretVersionRespMultiError is an error wrapping multiple validation errors returned by DeleteSecretVersionResp.ValidateAll() if the designated constraints aren't met.

func (DeleteSecretVersionRespMultiError) AllErrors

func (m DeleteSecretVersionRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteSecretVersionRespMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeleteSecretVersionRespValidationError

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

DeleteSecretVersionRespValidationError is the validation error returned by DeleteSecretVersionResp.Validate if the designated constraints aren't met.

func (DeleteSecretVersionRespValidationError) Cause

Cause function returns cause value.

func (DeleteSecretVersionRespValidationError) Error

Error satisfies the builtin error interface

func (DeleteSecretVersionRespValidationError) ErrorName

ErrorName returns error name.

func (DeleteSecretVersionRespValidationError) Field

Field function returns field value.

func (DeleteSecretVersionRespValidationError) Key

Key function returns key value.

func (DeleteSecretVersionRespValidationError) Reason

Reason function returns reason value.

type ListSecretVersionsReq

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

func (*ListSecretVersionsReq) Descriptor deprecated

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

Deprecated: Use ListSecretVersionsReq.ProtoReflect.Descriptor instead.

func (*ListSecretVersionsReq) GetKey

func (x *ListSecretVersionsReq) GetKey() string

func (*ListSecretVersionsReq) ProtoMessage

func (*ListSecretVersionsReq) ProtoMessage()

func (*ListSecretVersionsReq) ProtoReflect

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

func (*ListSecretVersionsReq) Reset

func (x *ListSecretVersionsReq) Reset()

func (*ListSecretVersionsReq) String

func (x *ListSecretVersionsReq) String() string

func (*ListSecretVersionsReq) Validate

func (m *ListSecretVersionsReq) Validate() error

Validate checks the field values on ListSecretVersionsReq 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 (*ListSecretVersionsReq) ValidateAll

func (m *ListSecretVersionsReq) ValidateAll() error

ValidateAll checks the field values on ListSecretVersionsReq 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 ListSecretVersionsReqMultiError, or nil if none found.

type ListSecretVersionsReqMultiError

type ListSecretVersionsReqMultiError []error

ListSecretVersionsReqMultiError is an error wrapping multiple validation errors returned by ListSecretVersionsReq.ValidateAll() if the designated constraints aren't met.

func (ListSecretVersionsReqMultiError) AllErrors

func (m ListSecretVersionsReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListSecretVersionsReqMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListSecretVersionsReqValidationError

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

ListSecretVersionsReqValidationError is the validation error returned by ListSecretVersionsReq.Validate if the designated constraints aren't met.

func (ListSecretVersionsReqValidationError) Cause

Cause function returns cause value.

func (ListSecretVersionsReqValidationError) Error

Error satisfies the builtin error interface

func (ListSecretVersionsReqValidationError) ErrorName

ErrorName returns error name.

func (ListSecretVersionsReqValidationError) Field

Field function returns field value.

func (ListSecretVersionsReqValidationError) Key

Key function returns key value.

func (ListSecretVersionsReqValidationError) Reason

Reason function returns reason value.

type ListSecretVersionsResp

type ListSecretVersionsResp struct {
	Versions []string `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSecretVersionsResp) Descriptor deprecated

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

Deprecated: Use ListSecretVersionsResp.ProtoReflect.Descriptor instead.

func (*ListSecretVersionsResp) GetVersions

func (x *ListSecretVersionsResp) GetVersions() []string

func (*ListSecretVersionsResp) ProtoMessage

func (*ListSecretVersionsResp) ProtoMessage()

func (*ListSecretVersionsResp) ProtoReflect

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

func (*ListSecretVersionsResp) Reset

func (x *ListSecretVersionsResp) Reset()

func (*ListSecretVersionsResp) String

func (x *ListSecretVersionsResp) String() string

func (*ListSecretVersionsResp) Validate

func (m *ListSecretVersionsResp) Validate() error

Validate checks the field values on ListSecretVersionsResp 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 (*ListSecretVersionsResp) ValidateAll

func (m *ListSecretVersionsResp) ValidateAll() error

ValidateAll checks the field values on ListSecretVersionsResp 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 ListSecretVersionsRespMultiError, or nil if none found.

type ListSecretVersionsRespMultiError

type ListSecretVersionsRespMultiError []error

ListSecretVersionsRespMultiError is an error wrapping multiple validation errors returned by ListSecretVersionsResp.ValidateAll() if the designated constraints aren't met.

func (ListSecretVersionsRespMultiError) AllErrors

func (m ListSecretVersionsRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListSecretVersionsRespMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListSecretVersionsRespValidationError

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

ListSecretVersionsRespValidationError is the validation error returned by ListSecretVersionsResp.Validate if the designated constraints aren't met.

func (ListSecretVersionsRespValidationError) Cause

Cause function returns cause value.

func (ListSecretVersionsRespValidationError) Error

Error satisfies the builtin error interface

func (ListSecretVersionsRespValidationError) ErrorName

ErrorName returns error name.

func (ListSecretVersionsRespValidationError) Field

Field function returns field value.

func (ListSecretVersionsRespValidationError) Key

Key function returns key value.

func (ListSecretVersionsRespValidationError) Reason

Reason function returns reason value.

type ListSecretsReq

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

func (*ListSecretsReq) Descriptor deprecated

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

Deprecated: Use ListSecretsReq.ProtoReflect.Descriptor instead.

func (*ListSecretsReq) ProtoMessage

func (*ListSecretsReq) ProtoMessage()

func (*ListSecretsReq) ProtoReflect

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

func (*ListSecretsReq) Reset

func (x *ListSecretsReq) Reset()

func (*ListSecretsReq) String

func (x *ListSecretsReq) String() string

func (*ListSecretsReq) Validate

func (m *ListSecretsReq) Validate() error

Validate checks the field values on ListSecretsReq 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 (*ListSecretsReq) ValidateAll

func (m *ListSecretsReq) ValidateAll() error

ValidateAll checks the field values on ListSecretsReq 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 ListSecretsReqMultiError, or nil if none found.

type ListSecretsReqMultiError

type ListSecretsReqMultiError []error

ListSecretsReqMultiError is an error wrapping multiple validation errors returned by ListSecretsReq.ValidateAll() if the designated constraints aren't met.

func (ListSecretsReqMultiError) AllErrors

func (m ListSecretsReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListSecretsReqMultiError) Error

func (m ListSecretsReqMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ListSecretsReqValidationError

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

ListSecretsReqValidationError is the validation error returned by ListSecretsReq.Validate if the designated constraints aren't met.

func (ListSecretsReqValidationError) Cause

Cause function returns cause value.

func (ListSecretsReqValidationError) Error

Error satisfies the builtin error interface

func (ListSecretsReqValidationError) ErrorName

func (e ListSecretsReqValidationError) ErrorName() string

ErrorName returns error name.

func (ListSecretsReqValidationError) Field

Field function returns field value.

func (ListSecretsReqValidationError) Key

Key function returns key value.

func (ListSecretsReqValidationError) Reason

Reason function returns reason value.

type ListSecretsResp

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

func (*ListSecretsResp) Descriptor deprecated

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

Deprecated: Use ListSecretsResp.ProtoReflect.Descriptor instead.

func (*ListSecretsResp) GetSecrets

func (x *ListSecretsResp) GetSecrets() []*common_config.Secret

func (*ListSecretsResp) ProtoMessage

func (*ListSecretsResp) ProtoMessage()

func (*ListSecretsResp) ProtoReflect

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

func (*ListSecretsResp) Reset

func (x *ListSecretsResp) Reset()

func (*ListSecretsResp) String

func (x *ListSecretsResp) String() string

func (*ListSecretsResp) Validate

func (m *ListSecretsResp) Validate() error

Validate checks the field values on ListSecretsResp 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 (*ListSecretsResp) ValidateAll

func (m *ListSecretsResp) ValidateAll() error

ValidateAll checks the field values on ListSecretsResp 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 ListSecretsRespMultiError, or nil if none found.

type ListSecretsRespMultiError

type ListSecretsRespMultiError []error

ListSecretsRespMultiError is an error wrapping multiple validation errors returned by ListSecretsResp.ValidateAll() if the designated constraints aren't met.

func (ListSecretsRespMultiError) AllErrors

func (m ListSecretsRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListSecretsRespMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListSecretsRespValidationError

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

ListSecretsRespValidationError is the validation error returned by ListSecretsResp.Validate if the designated constraints aren't met.

func (ListSecretsRespValidationError) Cause

Cause function returns cause value.

func (ListSecretsRespValidationError) Error

Error satisfies the builtin error interface

func (ListSecretsRespValidationError) ErrorName

func (e ListSecretsRespValidationError) ErrorName() string

ErrorName returns error name.

func (ListSecretsRespValidationError) Field

Field function returns field value.

func (ListSecretsRespValidationError) Key

Key function returns key value.

func (ListSecretsRespValidationError) Reason

Reason function returns reason value.

type SecretsManagerClient

type SecretsManagerClient interface {
	ListSecrets(ctx context.Context, in *ListSecretsReq, opts ...grpc.CallOption) (*ListSecretsResp, error)
	ListSecretVersions(ctx context.Context, in *ListSecretVersionsReq, opts ...grpc.CallOption) (*ListSecretVersionsResp, error)
	SetSecret(ctx context.Context, in *SetSecretReq, opts ...grpc.CallOption) (*SetSecretResp, error)
	DeleteSecret(ctx context.Context, in *DeleteSecretReq, opts ...grpc.CallOption) (*DeleteSecretResp, error)
	DeleteSecretVersion(ctx context.Context, in *DeleteSecretVersionReq, opts ...grpc.CallOption) (*DeleteSecretVersionResp, 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 SecretsManagerServer

type SecretsManagerServer interface {
	ListSecrets(context.Context, *ListSecretsReq) (*ListSecretsResp, error)
	ListSecretVersions(context.Context, *ListSecretVersionsReq) (*ListSecretVersionsResp, error)
	SetSecret(context.Context, *SetSecretReq) (*SetSecretResp, error)
	DeleteSecret(context.Context, *DeleteSecretReq) (*DeleteSecretResp, error)
	DeleteSecretVersion(context.Context, *DeleteSecretVersionReq) (*DeleteSecretVersionResp, error)
	// contains filtered or unexported methods
}

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

type SetSecretReq

type SetSecretReq struct {
	Key   string `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 (*SetSecretReq) Descriptor deprecated

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

Deprecated: Use SetSecretReq.ProtoReflect.Descriptor instead.

func (*SetSecretReq) GetKey

func (x *SetSecretReq) GetKey() string

func (*SetSecretReq) GetValue

func (x *SetSecretReq) GetValue() string

func (*SetSecretReq) ProtoMessage

func (*SetSecretReq) ProtoMessage()

func (*SetSecretReq) ProtoReflect

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

func (*SetSecretReq) Reset

func (x *SetSecretReq) Reset()

func (*SetSecretReq) String

func (x *SetSecretReq) String() string

func (*SetSecretReq) Validate

func (m *SetSecretReq) Validate() error

Validate checks the field values on SetSecretReq 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 (*SetSecretReq) ValidateAll

func (m *SetSecretReq) ValidateAll() error

ValidateAll checks the field values on SetSecretReq 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 SetSecretReqMultiError, or nil if none found.

type SetSecretReqMultiError

type SetSecretReqMultiError []error

SetSecretReqMultiError is an error wrapping multiple validation errors returned by SetSecretReq.ValidateAll() if the designated constraints aren't met.

func (SetSecretReqMultiError) AllErrors

func (m SetSecretReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetSecretReqMultiError) Error

func (m SetSecretReqMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SetSecretReqValidationError

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

SetSecretReqValidationError is the validation error returned by SetSecretReq.Validate if the designated constraints aren't met.

func (SetSecretReqValidationError) Cause

Cause function returns cause value.

func (SetSecretReqValidationError) Error

Error satisfies the builtin error interface

func (SetSecretReqValidationError) ErrorName

func (e SetSecretReqValidationError) ErrorName() string

ErrorName returns error name.

func (SetSecretReqValidationError) Field

Field function returns field value.

func (SetSecretReqValidationError) Key

Key function returns key value.

func (SetSecretReqValidationError) Reason

Reason function returns reason value.

type SetSecretResp

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

func (*SetSecretResp) Descriptor deprecated

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

Deprecated: Use SetSecretResp.ProtoReflect.Descriptor instead.

func (*SetSecretResp) GetVersion

func (x *SetSecretResp) GetVersion() string

func (*SetSecretResp) ProtoMessage

func (*SetSecretResp) ProtoMessage()

func (*SetSecretResp) ProtoReflect

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

func (*SetSecretResp) Reset

func (x *SetSecretResp) Reset()

func (*SetSecretResp) String

func (x *SetSecretResp) String() string

func (*SetSecretResp) Validate

func (m *SetSecretResp) Validate() error

Validate checks the field values on SetSecretResp 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 (*SetSecretResp) ValidateAll

func (m *SetSecretResp) ValidateAll() error

ValidateAll checks the field values on SetSecretResp 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 SetSecretRespMultiError, or nil if none found.

type SetSecretRespMultiError

type SetSecretRespMultiError []error

SetSecretRespMultiError is an error wrapping multiple validation errors returned by SetSecretResp.ValidateAll() if the designated constraints aren't met.

func (SetSecretRespMultiError) AllErrors

func (m SetSecretRespMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SetSecretRespMultiError) Error

func (m SetSecretRespMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SetSecretRespValidationError

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

SetSecretRespValidationError is the validation error returned by SetSecretResp.Validate if the designated constraints aren't met.

func (SetSecretRespValidationError) Cause

Cause function returns cause value.

func (SetSecretRespValidationError) Error

Error satisfies the builtin error interface

func (SetSecretRespValidationError) ErrorName

func (e SetSecretRespValidationError) ErrorName() string

ErrorName returns error name.

func (SetSecretRespValidationError) Field

Field function returns field value.

func (SetSecretRespValidationError) Key

Key function returns key value.

func (SetSecretRespValidationError) Reason

Reason function returns reason value.

type UnimplementedSecretsManagerServer

type UnimplementedSecretsManagerServer struct {
}

UnimplementedSecretsManagerServer must be embedded to have forward compatible implementations.

func (UnimplementedSecretsManagerServer) DeleteSecret

func (UnimplementedSecretsManagerServer) DeleteSecretVersion

func (UnimplementedSecretsManagerServer) ListSecretVersions

func (UnimplementedSecretsManagerServer) ListSecrets

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