secret

package
v0.0.0-...-b9fdcee Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0, BSD-2-Clause, MIT Imports: 22 Imported by: 0

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

View Source
const DataSecretTypeName = "Data"
View Source
const RSAPrivateKeySecretTypeName = "RSAPrivateKey"
View Source
const X509CertificateSecretTypeName = "X509Certificate"

Variables

View Source
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 X509CertificateSecretMetaData

type X509CertificateSecretMetaData struct {
	CommonName         string `json:"commonName"`
	Organization       string `json:"organization"`
	OrganizationalUnit string `json:"organizationalUnit"`
	Country            string `json:"country"`
	Locality           string `json:"locality"`
	PrivateKeyId       string `json:"privateKeyId"`
}

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

Jump to

Keyboard shortcuts

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