Versions in this module Expand all Collapse all v0 v0.4.0 Mar 31, 2022 Changes in this version + type CRDStore struct + func NewCRDStore(opts ...CRDStoreOption) *CRDStore + func (c *CRDStore) CreateCluster(ctx context.Context, cluster *core.Cluster) error + func (c *CRDStore) CreateRole(ctx context.Context, role *core.Role) error + func (c *CRDStore) CreateRoleBinding(ctx context.Context, rb *core.RoleBinding) error + func (c *CRDStore) CreateToken(ctx context.Context, ttl time.Duration, opts ...storage.TokenCreateOption) (*core.BootstrapToken, error) + func (c *CRDStore) DeleteCluster(ctx context.Context, ref *core.Reference) error + func (c *CRDStore) DeleteRole(ctx context.Context, ref *core.Reference) error + func (c *CRDStore) DeleteRoleBinding(ctx context.Context, ref *core.Reference) error + func (c *CRDStore) DeleteToken(ctx context.Context, ref *core.Reference) error + func (c *CRDStore) GetCluster(ctx context.Context, ref *core.Reference) (*core.Cluster, error) + func (c *CRDStore) GetRole(ctx context.Context, ref *core.Reference) (*core.Role, error) + func (c *CRDStore) GetRoleBinding(ctx context.Context, ref *core.Reference) (*core.RoleBinding, error) + func (c *CRDStore) GetToken(ctx context.Context, ref *core.Reference) (*core.BootstrapToken, error) + func (c *CRDStore) ListClusters(ctx context.Context, matchLabels *core.LabelSelector, ...) (*core.ClusterList, error) + func (c *CRDStore) ListRoleBindings(ctx context.Context) (*core.RoleBindingList, error) + func (c *CRDStore) ListRoles(ctx context.Context) (*core.RoleList, error) + func (c *CRDStore) ListTokens(ctx context.Context) ([]*core.BootstrapToken, error) + func (c *CRDStore) UpdateCluster(ctx context.Context, ref *core.Reference, ...) (*core.Cluster, error) + func (c *CRDStore) UpdateToken(ctx context.Context, ref *core.Reference, ...) (*core.BootstrapToken, error) + type CRDStoreOption func(*CRDStoreOptions) + func WithNamespace(ns string) CRDStoreOption + func WithRestConfig(rc *rest.Config) CRDStoreOption + type CRDStoreOptions struct + func (o *CRDStoreOptions) Apply(opts ...CRDStoreOption)