secrets

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const NamePrefix = "token-"

NamePrefix is a prefix we use to avoid collisions with other keysets

Variables

This section is empty.

Functions

func BuildVfsSecretPath

func BuildVfsSecretPath(basedir vfs.Path, name string) vfs.Path

func NewClientsetSecretStore

func NewClientsetSecretStore(cluster *kops.Cluster, clientset kopsinternalversion.KopsInterface, namespace string) fi.SecretStore

NewClientsetSecretStore is the constructor for ClientsetSecretStore

func NewVFSSecretStore

func NewVFSSecretStore(cluster *kops.Cluster, basedir vfs.Path) fi.SecretStore

Types

type ClientsetSecretStore

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

ClientsetSecretStore is a SecretStore backed by Keyset objects in an API server

func (*ClientsetSecretStore) DeleteSecret

func (c *ClientsetSecretStore) DeleteSecret(name string) error

DeleteSecret implements fi.SecretStore::DeleteSecret

func (*ClientsetSecretStore) FindSecret

func (c *ClientsetSecretStore) FindSecret(name string) (*fi.Secret, error)

FindSecret implements fi.SecretStore::FindSecret

func (*ClientsetSecretStore) GetOrCreateSecret

func (c *ClientsetSecretStore) GetOrCreateSecret(name string, secret *fi.Secret) (*fi.Secret, bool, error)

GetOrCreateSecret implements fi.SecretStore::GetOrCreateSecret

func (*ClientsetSecretStore) ListSecrets

func (c *ClientsetSecretStore) ListSecrets() ([]string, error)

ListSecrets implements fi.SecretStore::ListSecrets

func (*ClientsetSecretStore) MirrorTo

func (c *ClientsetSecretStore) MirrorTo(basedir vfs.Path) error

func (*ClientsetSecretStore) ReplaceSecret

func (c *ClientsetSecretStore) ReplaceSecret(name string, secret *fi.Secret) (*fi.Secret, error)

ReplaceSecret implements fi.SecretStore::ReplaceSecret

func (*ClientsetSecretStore) Secret

func (c *ClientsetSecretStore) Secret(name string) (*fi.Secret, error)

Secret implements fi.SecretStore::Secret

type VFSSecretStore

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

func (*VFSSecretStore) DeleteSecret

func (c *VFSSecretStore) DeleteSecret(name string) error

DeleteSecret implements fi.SecretStore DeleteSecret

func (*VFSSecretStore) FindSecret

func (c *VFSSecretStore) FindSecret(id string) (*fi.Secret, error)

func (*VFSSecretStore) GetOrCreateSecret

func (c *VFSSecretStore) GetOrCreateSecret(id string, secret *fi.Secret) (*fi.Secret, bool, error)

func (*VFSSecretStore) ListSecrets

func (c *VFSSecretStore) ListSecrets() ([]string, error)

func (*VFSSecretStore) MirrorTo

func (c *VFSSecretStore) MirrorTo(basedir vfs.Path) error

func (*VFSSecretStore) ReplaceSecret

func (c *VFSSecretStore) ReplaceSecret(id string, secret *fi.Secret) (*fi.Secret, error)

func (*VFSSecretStore) Secret

func (c *VFSSecretStore) Secret(id string) (*fi.Secret, error)

func (*VFSSecretStore) VFSPath

func (c *VFSSecretStore) VFSPath() vfs.Path

Jump to

Keyboard shortcuts

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