serviceaccount

package
v0.62.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd() *cobra.Command

func NewListCmd

func NewListCmd(o *ListOptions, flagsFactory cmdcore.FlagsFactory) *cobra.Command

Types

type ListOptions

type ListOptions struct {
	AppFlags cmdapp.Flags
	Values   bool
	// contains filtered or unexported fields
}

func NewListOptions

func NewListOptions(ui ui.UI, depsFactory cmdcore.DepsFactory, logger logger.Logger) *ListOptions

func (*ListOptions) Run

func (o *ListOptions) Run() error

type RBACResources

type RBACResources struct {
	ServiceAccounts []*ServiceAccount
	Roles           []*Role
	RoleBindings    []*RoleBinding
}

func (*RBACResources) Collect

func (r *RBACResources) Collect(resources []ctlres.Resource) error

type Role

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

func NewRole

func NewRole(resource ctlres.Resource) (*Role, error)

func (*Role) APIGroup

func (r *Role) APIGroup() string

func (*Role) APIGroups

func (r *Role) APIGroups() []string

func (*Role) Kind

func (r *Role) Kind() string

func (*Role) MarkUsed

func (r *Role) MarkUsed()

func (*Role) Name

func (r *Role) Name() string

func (*Role) Namespace

func (r *Role) Namespace() string

func (*Role) Resources

func (r *Role) Resources() []string

func (*Role) Used

func (r *Role) Used() bool

func (*Role) Verbs

func (r *Role) Verbs() []string

type RoleBinding

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

func NewRoleBinding

func NewRoleBinding(resource ctlres.Resource) (*RoleBinding, error)

func (*RoleBinding) MarkUsed

func (r *RoleBinding) MarkUsed()

func (*RoleBinding) MatchesRole

func (r *RoleBinding) MatchesRole(role *Role) bool

func (*RoleBinding) MatchesServiceAccount

func (r *RoleBinding) MatchesServiceAccount(sa *ServiceAccount) bool

func (*RoleBinding) Name

func (r *RoleBinding) Name() string

func (*RoleBinding) Namespace

func (r *RoleBinding) Namespace() string

func (*RoleBinding) Used

func (r *RoleBinding) Used() bool

type ServiceAccount

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

func NewServiceAccount

func NewServiceAccount(resource ctlres.Resource) (*ServiceAccount, error)

func (*ServiceAccount) APIGroup

func (s *ServiceAccount) APIGroup() string

func (*ServiceAccount) Kind

func (s *ServiceAccount) Kind() string

func (*ServiceAccount) MarkUsed

func (s *ServiceAccount) MarkUsed()

func (*ServiceAccount) Name

func (s *ServiceAccount) Name() string

func (*ServiceAccount) Namespace

func (s *ServiceAccount) Namespace() string

func (*ServiceAccount) Used

func (s *ServiceAccount) Used() bool

Jump to

Keyboard shortcuts

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