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
- func NewVFSSecretStoreReader(basedir vfs.Path) fi.SecretStoreReader
- type ClientsetSecretStore
- func (c *ClientsetSecretStore) DeleteSecret(name string) error
- func (c *ClientsetSecretStore) FindSecret(name string) (*fi.Secret, error)
- func (c *ClientsetSecretStore) GetOrCreateSecret(ctx context.Context, name string, secret *fi.Secret) (*fi.Secret, bool, error)
- func (c *ClientsetSecretStore) ListSecrets() ([]string, error)
- func (c *ClientsetSecretStore) MirrorTo(ctx context.Context, basedir vfs.Path) error
- func (c *ClientsetSecretStore) ReplaceSecret(name string, secret *fi.Secret) (*fi.Secret, error)
- func (c *ClientsetSecretStore) Secret(name string) (*fi.Secret, error)
- type VFSSecretStore
- func (c *VFSSecretStore) DeleteSecret(name string) error
- func (c *VFSSecretStore) GetOrCreateSecret(ctx context.Context, id string, secret *fi.Secret) (*fi.Secret, bool, error)
- func (c *VFSSecretStore) ListSecrets() ([]string, error)
- func (c *VFSSecretStore) MirrorTo(ctx context.Context, basedir vfs.Path) error
- func (c *VFSSecretStore) ReplaceSecret(id string, secret *fi.Secret) (*fi.Secret, error)
- type VFSSecretStoreReader
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 ¶ added in v1.10.0
func NewClientsetSecretStore ¶ added in v1.10.0
func NewClientsetSecretStore(cluster *kops.Cluster, clientset kopsinternalversion.KopsInterface, namespace string) fi.SecretStore
NewClientsetSecretStore is the constructor for ClientsetSecretStore
func NewVFSSecretStore ¶
func NewVFSSecretStoreReader ¶ added in v1.27.0
func NewVFSSecretStoreReader(basedir vfs.Path) fi.SecretStoreReader
Types ¶
type ClientsetSecretStore ¶ added in v1.10.0
type ClientsetSecretStore struct {
// contains filtered or unexported fields
}
ClientsetSecretStore is a SecretStore backed by Keyset objects in an API server
func (*ClientsetSecretStore) DeleteSecret ¶ added in v1.10.0
func (c *ClientsetSecretStore) DeleteSecret(name string) error
DeleteSecret implements fi.SecretStore::DeleteSecret
func (*ClientsetSecretStore) FindSecret ¶ added in v1.10.0
func (c *ClientsetSecretStore) FindSecret(name string) (*fi.Secret, error)
FindSecret implements fi.SecretStore::FindSecret
func (*ClientsetSecretStore) GetOrCreateSecret ¶ added in v1.10.0
func (c *ClientsetSecretStore) GetOrCreateSecret(ctx context.Context, name string, secret *fi.Secret) (*fi.Secret, bool, error)
GetOrCreateSecret implements fi.SecretStore::GetOrCreateSecret
func (*ClientsetSecretStore) ListSecrets ¶ added in v1.10.0
func (c *ClientsetSecretStore) ListSecrets() ([]string, error)
ListSecrets implements fi.SecretStore::ListSecrets
func (*ClientsetSecretStore) ReplaceSecret ¶ added in v1.10.0
ReplaceSecret implements fi.SecretStore::ReplaceSecret
type VFSSecretStore ¶
type VFSSecretStore struct { VFSSecretStoreReader // contains filtered or unexported fields }
func (*VFSSecretStore) DeleteSecret ¶ added in v1.10.0
func (c *VFSSecretStore) DeleteSecret(name string) error
DeleteSecret implements fi.SecretStore DeleteSecret
func (*VFSSecretStore) GetOrCreateSecret ¶
func (*VFSSecretStore) ListSecrets ¶
func (c *VFSSecretStore) ListSecrets() ([]string, error)
func (*VFSSecretStore) ReplaceSecret ¶ added in v1.10.0
type VFSSecretStoreReader ¶ added in v1.27.0
type VFSSecretStoreReader struct {
// contains filtered or unexported fields
}
func (*VFSSecretStoreReader) FindSecret ¶ added in v1.27.0
func (c *VFSSecretStoreReader) FindSecret(id string) (*fi.Secret, error)
func (*VFSSecretStoreReader) Secret ¶ added in v1.27.0
func (c *VFSSecretStoreReader) Secret(id string) (*fi.Secret, error)
func (*VFSSecretStoreReader) VFSPath ¶ added in v1.27.0
func (c *VFSSecretStoreReader) VFSPath() vfs.Path
Click to show internal directories.
Click to hide internal directories.