crds

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRDStore

type CRDStore struct {
	CRDStoreOptions
	// contains filtered or unexported fields
}

func NewCRDStore

func NewCRDStore(opts ...CRDStoreOption) *CRDStore

func (*CRDStore) CreateRole

func (c *CRDStore) CreateRole(ctx context.Context, role *corev1.Role) error

func (*CRDStore) CreateRoleBinding

func (c *CRDStore) CreateRoleBinding(ctx context.Context, rb *corev1.RoleBinding) error

func (*CRDStore) CreateToken

func (c *CRDStore) CreateToken(ctx context.Context, ttl time.Duration, opts ...storage.TokenCreateOption) (*corev1.BootstrapToken, error)

func (*CRDStore) DeleteRole

func (c *CRDStore) DeleteRole(ctx context.Context, ref *corev1.Reference) error

func (*CRDStore) DeleteRoleBinding

func (c *CRDStore) DeleteRoleBinding(ctx context.Context, ref *corev1.Reference) error

func (*CRDStore) DeleteToken

func (c *CRDStore) DeleteToken(ctx context.Context, ref *corev1.Reference) error

func (*CRDStore) GetRole

func (c *CRDStore) GetRole(ctx context.Context, ref *corev1.Reference) (*corev1.Role, error)

func (*CRDStore) GetRoleBinding

func (c *CRDStore) GetRoleBinding(ctx context.Context, ref *corev1.Reference) (*corev1.RoleBinding, error)

func (*CRDStore) GetToken

func (c *CRDStore) GetToken(ctx context.Context, ref *corev1.Reference) (*corev1.BootstrapToken, error)

func (*CRDStore) KeyringStore

func (e *CRDStore) KeyringStore(prefix string, ref *corev1.Reference) storage.KeyringStore

func (*CRDStore) ListRoleBindings

func (c *CRDStore) ListRoleBindings(ctx context.Context) (*corev1.RoleBindingList, error)

func (*CRDStore) ListRoles

func (c *CRDStore) ListRoles(ctx context.Context) (*corev1.RoleList, error)

func (*CRDStore) ListTokens

func (c *CRDStore) ListTokens(ctx context.Context) ([]*corev1.BootstrapToken, error)

func (*CRDStore) UpdateRole added in v0.11.0

func (c *CRDStore) UpdateRole(ctx context.Context, ref *corev1.Reference, mutator storage.MutatorFunc[*corev1.Role]) (*corev1.Role, error)

func (*CRDStore) UpdateRoleBinding added in v0.11.0

func (c *CRDStore) UpdateRoleBinding(ctx context.Context, ref *corev1.Reference, mutator storage.MutatorFunc[*corev1.RoleBinding]) (*corev1.RoleBinding, error)

func (*CRDStore) UpdateToken

type CRDStoreOption

type CRDStoreOption func(*CRDStoreOptions)

func WithNamespace

func WithNamespace(ns string) CRDStoreOption

func WithRestConfig

func WithRestConfig(rc *rest.Config) CRDStoreOption

type CRDStoreOptions

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

Jump to

Keyboard shortcuts

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