Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotSupportedSecretType = errors.Sentinel("not supported secret type")
ErrNotSupportedSecretType describe an error if the secret type is not supported.
Functions ¶
This section is empty.
Types ¶
type MockService ¶
MockService is an autogenerated mock for the Service type.
func (*MockService) GetSecretType ¶
func (_m *MockService) GetSecretType(ctx context.Context, secretType string) (secretTypeDef TypeDefinition, err error)
GetSecretType provides a mock function.
func (*MockService) ListSecretTypes ¶
func (_m *MockService) ListSecretTypes(ctx context.Context) (secretTypes map[string]TypeDefinition, err error)
ListSecretTypes provides a mock function.
type Service ¶
type Service interface { // ListSecretTypes lists secret type definitions. ListSecretTypes(ctx context.Context) (secretTypes map[string]TypeDefinition, err error) // GetSecretType returns a single secret type definition. GetSecretType(ctx context.Context, secretType string) (secretTypeDef TypeDefinition, err error) }
Service provides information about secret types.
func NewService ¶
NewService returns a new Service.
type TypeDefinition ¶
type TypeDefinition struct {
Fields []TypeField `json:"fields"`
}
TypeDefinition represents a secret type definition.
Click to show internal directories.
Click to hide internal directories.