Documentation ¶
Overview ¶
Copyright © 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: BSD-2-Clause
Copyright © 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: BSD-2-Clause
Package classification Virtual Security Module ¶
Secret Lifecycle Management API
BasePath: /
swagger:meta
Copyright © 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: BSD-2-Clause
Copyright © 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: BSD-2-Clause
Copyright © 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: BSD-2-Clause
Copyright © 2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: BSD-2-Clause
Index ¶
- Constants
- Variables
- type DataSecretType
- func (dataST *DataSecretType) CreateSecret(ctx gocontext.Context, secretEntry *model.SecretEntry) (string, error)
- func (dataST *DataSecretType) DeleteSecret(ctx gocontext.Context, secretEntry *model.SecretEntry) error
- func (dataST *DataSecretType) GetSecret(ctx gocontext.Context, secretEntry *model.SecretEntry) (*model.SecretEntry, error)
- func (dataST *DataSecretType) Init(moduleInitContext *context.ModuleInitContext) error
- func (dataST *DataSecretType) Type() string
- type RSAPrivateKeySecretMetaData
- type RSAPrivateKeySecretType
- func (rsaPrivKeyST *RSAPrivateKeySecretType) CreateSecret(ctx gocontext.Context, secretEntry *model.SecretEntry) (string, error)
- func (rsaPrivKeyST *RSAPrivateKeySecretType) DeleteSecret(ctx gocontext.Context, secretEntry *model.SecretEntry) error
- func (rsaPrivKeyST *RSAPrivateKeySecretType) GetSecret(ctx gocontext.Context, secretEntry *model.SecretEntry) (*model.SecretEntry, error)
- func (rsaPrivKeyST *RSAPrivateKeySecretType) Init(moduleInitContext *context.ModuleInitContext) error
- func (rsaPrivKeyST *RSAPrivateKeySecretType) Type() string
- type SecretCreationResponse
- type SecretEntryParam
- type SecretEntryResponse
- type SecretManager
- func (secretManager *SecretManager) Close() error
- func (secretManager *SecretManager) CreateSecret(ctx gocontext.Context, secretEntry *model.SecretEntry) (string, error)
- func (secretManager *SecretManager) DeleteSecret(ctx gocontext.Context, secretId string) error
- func (secretManager *SecretManager) GetSecret(ctx gocontext.Context, secretId string) (*model.SecretEntry, error)
- func (secretManager *SecretManager) Init(moduleInitContext *context.ModuleInitContext) error
- func (secretManager *SecretManager) RegisterEndpoints(mux *denco.Mux) []denco.Handler
- func (secretManager *SecretManager) Type() string
- type SecretType
- type X509CertificateSecretMetaData
- type X509CertificateSecretType
- func (certST *X509CertificateSecretType) CreateSecret(ctx gocontext.Context, secretEntry *model.SecretEntry) (string, error)
- func (certST *X509CertificateSecretType) DeleteSecret(ctx gocontext.Context, secretEntry *model.SecretEntry) error
- func (certST *X509CertificateSecretType) GetSecret(ctx gocontext.Context, secretEntry *model.SecretEntry) (*model.SecretEntry, error)
- func (certST *X509CertificateSecretType) Init(moduleInitContext *context.ModuleInitContext) error
- func (certST *X509CertificateSecretType) Type() string
Constants ¶
const DataSecretTypeName = "Data"
const RSAPrivateKeySecretTypeName = "RSAPrivateKey"
const X509CertificateSecretTypeName = "X509Certificate"
Variables ¶
var SecretTypeRegistrar *secretTypeRegistrar = newRegistrar()
singleton registrar for secret types
Functions ¶
This section is empty.
Types ¶
type DataSecretType ¶
type DataSecretType struct {
// contains filtered or unexported fields
}
A data-only secret type. This is the simplest secret type.
func NewDataSecretType ¶
func NewDataSecretType() *DataSecretType
func (*DataSecretType) CreateSecret ¶
func (dataST *DataSecretType) CreateSecret(ctx gocontext.Context, secretEntry *model.SecretEntry) (string, error)
func (*DataSecretType) DeleteSecret ¶
func (dataST *DataSecretType) DeleteSecret(ctx gocontext.Context, secretEntry *model.SecretEntry) error
func (*DataSecretType) GetSecret ¶
func (dataST *DataSecretType) GetSecret(ctx gocontext.Context, secretEntry *model.SecretEntry) (*model.SecretEntry, error)
func (*DataSecretType) Init ¶
func (dataST *DataSecretType) Init(moduleInitContext *context.ModuleInitContext) error
func (*DataSecretType) Type ¶
func (dataST *DataSecretType) Type() string
type RSAPrivateKeySecretMetaData ¶
type RSAPrivateKeySecretMetaData struct {
KeyLength int `json:"keyLength"`
}
type RSAPrivateKeySecretType ¶
type RSAPrivateKeySecretType struct {
// contains filtered or unexported fields
}
func NewRSAPrivateKeySecretType ¶
func NewRSAPrivateKeySecretType() *RSAPrivateKeySecretType
func (*RSAPrivateKeySecretType) CreateSecret ¶
func (rsaPrivKeyST *RSAPrivateKeySecretType) CreateSecret(ctx gocontext.Context, secretEntry *model.SecretEntry) (string, error)
func (*RSAPrivateKeySecretType) DeleteSecret ¶
func (rsaPrivKeyST *RSAPrivateKeySecretType) DeleteSecret(ctx gocontext.Context, secretEntry *model.SecretEntry) error
func (*RSAPrivateKeySecretType) GetSecret ¶
func (rsaPrivKeyST *RSAPrivateKeySecretType) GetSecret(ctx gocontext.Context, secretEntry *model.SecretEntry) (*model.SecretEntry, error)
func (*RSAPrivateKeySecretType) Init ¶
func (rsaPrivKeyST *RSAPrivateKeySecretType) Init(moduleInitContext *context.ModuleInitContext) error
func (*RSAPrivateKeySecretType) Type ¶
func (rsaPrivKeyST *RSAPrivateKeySecretType) Type() string
type SecretCreationResponse ¶
type SecretCreationResponse struct { // in:body Body struct { SecretId string } }
swagger:response SecretCreationResponse
type SecretEntryParam ¶
type SecretEntryParam struct { // in:body SecretEntry model.SecretEntry }
swagger:parameters CreateSecret
type SecretEntryResponse ¶
type SecretEntryResponse struct { // in:body SecretEntry model.SecretEntry }
swagger:response SecretEntryResponse
type SecretManager ¶
type SecretManager struct {
// contains filtered or unexported fields
}
func New ¶
func New() *SecretManager
func (*SecretManager) Close ¶
func (secretManager *SecretManager) Close() error
func (*SecretManager) CreateSecret ¶
func (secretManager *SecretManager) CreateSecret(ctx gocontext.Context, secretEntry *model.SecretEntry) (string, error)
func (*SecretManager) DeleteSecret ¶
func (secretManager *SecretManager) DeleteSecret(ctx gocontext.Context, secretId string) error
func (*SecretManager) GetSecret ¶
func (secretManager *SecretManager) GetSecret(ctx gocontext.Context, secretId string) (*model.SecretEntry, error)
func (*SecretManager) Init ¶
func (secretManager *SecretManager) Init(moduleInitContext *context.ModuleInitContext) error
func (*SecretManager) RegisterEndpoints ¶
func (secretManager *SecretManager) RegisterEndpoints(mux *denco.Mux) []denco.Handler
func (*SecretManager) Type ¶
func (secretManager *SecretManager) Type() string
type SecretType ¶
type SecretType interface { Type() string Init(*context.ModuleInitContext) error CreateSecret(gocontext.Context, *model.SecretEntry) (string, error) GetSecret(gocontext.Context, *model.SecretEntry) (*model.SecretEntry, error) DeleteSecret(gocontext.Context, *model.SecretEntry) error }
type X509CertificateSecretType ¶
type X509CertificateSecretType struct {
// contains filtered or unexported fields
}
func NewX509CertificateSecretType ¶
func NewX509CertificateSecretType() *X509CertificateSecretType
func (*X509CertificateSecretType) CreateSecret ¶
func (certST *X509CertificateSecretType) CreateSecret(ctx gocontext.Context, secretEntry *model.SecretEntry) (string, error)
func (*X509CertificateSecretType) DeleteSecret ¶
func (certST *X509CertificateSecretType) DeleteSecret(ctx gocontext.Context, secretEntry *model.SecretEntry) error
func (*X509CertificateSecretType) GetSecret ¶
func (certST *X509CertificateSecretType) GetSecret(ctx gocontext.Context, secretEntry *model.SecretEntry) (*model.SecretEntry, error)
func (*X509CertificateSecretType) Init ¶
func (certST *X509CertificateSecretType) Init(moduleInitContext *context.ModuleInitContext) error
func (*X509CertificateSecretType) Type ¶
func (certST *X509CertificateSecretType) Type() string