Documentation ¶
Index ¶
- Constants
- func BuildVfsSecretPath(basedir vfs.Path, name string) vfs.Path
- func NewClientsetSecretStore(cluster *kops.Cluster, clientset kopsinternalversion.KopsInterface, ...) fi.SecretStore
- func NewVFSSecretStore(cluster *kops.Cluster, basedir vfs.Path) fi.SecretStore
- type ClientsetSecretStore
- func (c *ClientsetSecretStore) DeleteSecret(item *fi.KeystoreItem) error
- func (c *ClientsetSecretStore) FindSecret(name string) (*fi.Secret, error)
- func (c *ClientsetSecretStore) GetOrCreateSecret(name string, secret *fi.Secret) (*fi.Secret, bool, error)
- func (c *ClientsetSecretStore) ListSecrets() ([]string, error)
- func (c *ClientsetSecretStore) MirrorTo(basedir vfs.Path) error
- func (c *ClientsetSecretStore) Secret(name string) (*fi.Secret, error)
- type VFSSecretStore
- func (c *VFSSecretStore) DeleteSecret(item *fi.KeystoreItem) error
- func (c *VFSSecretStore) FindSecret(id string) (*fi.Secret, error)
- func (c *VFSSecretStore) GetOrCreateSecret(id string, secret *fi.Secret) (*fi.Secret, bool, error)
- func (c *VFSSecretStore) ListSecrets() ([]string, error)
- func (c *VFSSecretStore) MirrorTo(basedir vfs.Path) error
- func (c *VFSSecretStore) Secret(id string) (*fi.Secret, error)
- func (c *VFSSecretStore) VFSPath() vfs.Path
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 NewClientsetSecretStore ¶
func NewClientsetSecretStore(cluster *kops.Cluster, clientset kopsinternalversion.KopsInterface, namespace string) fi.SecretStore
NewClientsetSecretStore is the constructor for ClientsetSecretStore
func NewVFSSecretStore ¶
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(item *fi.KeystoreItem) 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
type VFSSecretStore ¶
type VFSSecretStore struct {
// contains filtered or unexported fields
}
func (*VFSSecretStore) DeleteSecret ¶
func (c *VFSSecretStore) DeleteSecret(item *fi.KeystoreItem) error
DeleteSecret implements fi.SecretStore DeleteSecret
func (*VFSSecretStore) FindSecret ¶
func (c *VFSSecretStore) FindSecret(id string) (*fi.Secret, error)
func (*VFSSecretStore) GetOrCreateSecret ¶
func (*VFSSecretStore) ListSecrets ¶
func (c *VFSSecretStore) ListSecrets() ([]string, error)
func (*VFSSecretStore) VFSPath ¶
func (c *VFSSecretStore) VFSPath() vfs.Path
Click to show internal directories.
Click to hide internal directories.