Documentation ¶
Index ¶
- type EtcdStore
- func (e *EtcdStore) CreateCluster(ctx context.Context, cluster *core.Cluster) error
- func (e *EtcdStore) CreateRole(ctx context.Context, role *core.Role) error
- func (e *EtcdStore) CreateRoleBinding(ctx context.Context, roleBinding *core.RoleBinding) error
- func (e *EtcdStore) CreateToken(ctx context.Context, ttl time.Duration, opts ...storage.TokenCreateOption) (*core.BootstrapToken, error)
- func (e *EtcdStore) DeleteCluster(ctx context.Context, ref *core.Reference) error
- func (e *EtcdStore) DeleteRole(ctx context.Context, ref *core.Reference) error
- func (e *EtcdStore) DeleteRoleBinding(ctx context.Context, ref *core.Reference) error
- func (e *EtcdStore) DeleteToken(ctx context.Context, ref *core.Reference) error
- func (e *EtcdStore) GetCluster(ctx context.Context, ref *core.Reference) (*core.Cluster, error)
- func (e *EtcdStore) GetRole(ctx context.Context, ref *core.Reference) (*core.Role, error)
- func (e *EtcdStore) GetRoleBinding(ctx context.Context, ref *core.Reference) (*core.RoleBinding, error)
- func (e *EtcdStore) GetToken(ctx context.Context, ref *core.Reference) (*core.BootstrapToken, error)
- func (e *EtcdStore) KeyValueStore(prefix string) (storage.KeyValueStore, error)
- func (e *EtcdStore) KeyringStore(ctx context.Context, prefix string, ref *core.Reference) (storage.KeyringStore, error)
- func (e *EtcdStore) ListClusters(ctx context.Context, matchLabels *core.LabelSelector, ...) (*core.ClusterList, error)
- func (e *EtcdStore) ListRoleBindings(ctx context.Context) (*core.RoleBindingList, error)
- func (e *EtcdStore) ListRoles(ctx context.Context) (*core.RoleList, error)
- func (e *EtcdStore) ListTokens(ctx context.Context) ([]*core.BootstrapToken, error)
- func (e *EtcdStore) UpdateCluster(ctx context.Context, ref *core.Reference, ...) (*core.Cluster, error)
- func (e *EtcdStore) UpdateToken(ctx context.Context, ref *core.Reference, ...) (*core.BootstrapToken, error)
- type EtcdStoreOption
- type EtcdStoreOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdStore ¶
type EtcdStore struct { EtcdStoreOptions Logger *zap.SugaredLogger Client *clientv3.Client }
EtcdStore implements TokenStore and TenantStore.
func NewEtcdStore ¶
func NewEtcdStore(ctx context.Context, conf *v1beta1.EtcdStorageSpec, opts ...EtcdStoreOption) *EtcdStore
func (*EtcdStore) CreateCluster ¶
func (*EtcdStore) CreateRole ¶
func (*EtcdStore) CreateRoleBinding ¶
func (*EtcdStore) CreateToken ¶
func (e *EtcdStore) CreateToken(ctx context.Context, ttl time.Duration, opts ...storage.TokenCreateOption) (*core.BootstrapToken, error)
func (*EtcdStore) DeleteCluster ¶
func (*EtcdStore) DeleteRole ¶
func (*EtcdStore) DeleteRoleBinding ¶
func (*EtcdStore) DeleteToken ¶
func (*EtcdStore) GetCluster ¶
func (*EtcdStore) GetRoleBinding ¶
func (*EtcdStore) KeyValueStore ¶
func (e *EtcdStore) KeyValueStore(prefix string) (storage.KeyValueStore, error)
func (*EtcdStore) KeyringStore ¶
func (*EtcdStore) ListClusters ¶
func (e *EtcdStore) ListClusters( ctx context.Context, matchLabels *core.LabelSelector, matchOptions core.MatchOptions, ) (*core.ClusterList, error)
func (*EtcdStore) ListRoleBindings ¶
func (*EtcdStore) ListTokens ¶
func (*EtcdStore) UpdateCluster ¶
func (*EtcdStore) UpdateToken ¶
func (e *EtcdStore) UpdateToken(ctx context.Context, ref *core.Reference, mutator storage.MutatorFunc[*core.BootstrapToken]) (*core.BootstrapToken, error)
type EtcdStoreOption ¶
type EtcdStoreOption func(*EtcdStoreOptions)
func WithCommandTimeout ¶
func WithCommandTimeout(timeout time.Duration) EtcdStoreOption
func WithPrefix ¶
func WithPrefix(prefix string) EtcdStoreOption
type EtcdStoreOptions ¶
func (*EtcdStoreOptions) Apply ¶
func (o *EtcdStoreOptions) Apply(opts ...EtcdStoreOption)
Click to show internal directories.
Click to hide internal directories.