roles

package
v0.0.0-...-6f0f11f Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClusterRoleBindingEventHandler

func NewClusterRoleBindingEventHandler(channel chan<- *gqlschema.ClusterRoleBindingEvent, filter func(binding v1.ClusterRoleBinding) bool) resource.EventHandlerProvider

func NewClusterRoleBindingService

func NewClusterRoleBindingService(serviceFactory *resource.GenericServiceFactory) (*resource.GenericService, error)

func NewClusterRoleService

func NewClusterRoleService(serviceFactory *resource.GenericServiceFactory) (*resource.GenericService, error)

func NewRoleBindingEventHandler

func NewRoleBindingEventHandler(channel chan<- *gqlschema.RoleBindingEvent, filter func(binding v1.RoleBinding) bool) resource.EventHandlerProvider

func NewRoleBindingService

func NewRoleBindingService(serviceFactory *resource.GenericServiceFactory) (*resource.GenericService, error)

func NewRoleService

func NewRoleService(serviceFactory *resource.GenericServiceFactory) (*resource.GenericService, error)

Types

type ClusterRoleBindingEventHandler

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

func (*ClusterRoleBindingEventHandler) K8sResource

func (h *ClusterRoleBindingEventHandler) K8sResource() interface{}

func (*ClusterRoleBindingEventHandler) Notify

func (*ClusterRoleBindingEventHandler) ShouldNotify

func (h *ClusterRoleBindingEventHandler) ShouldNotify() bool

type ClusterRoleBindingList

type ClusterRoleBindingList []*v1.ClusterRoleBinding

func (*ClusterRoleBindingList) Append

func (l *ClusterRoleBindingList) Append() interface{}

type ClusterRolesList

type ClusterRolesList []*v1.ClusterRole

func (*ClusterRolesList) Append

func (l *ClusterRolesList) Append() interface{}

type Resolver

type Resolver struct {
	*resource.Module
}

func New

func (*Resolver) ClusterRoleBindingService

func (r *Resolver) ClusterRoleBindingService() *resource.GenericService

func (*Resolver) ClusterRoleBindingSubscription

func (r *Resolver) ClusterRoleBindingSubscription(ctx context.Context) (<-chan *gqlschema.ClusterRoleBindingEvent, error)

func (*Resolver) ClusterRoleBindingsQuery

func (r *Resolver) ClusterRoleBindingsQuery(ctx context.Context) ([]*v1.ClusterRoleBinding, error)

func (*Resolver) ClusterRoleQuery

func (r *Resolver) ClusterRoleQuery(ctx context.Context, name string) (*v1.ClusterRole, error)

func (*Resolver) ClusterRoleService

func (r *Resolver) ClusterRoleService() *resource.GenericService

func (*Resolver) ClusterRolesQuery

func (r *Resolver) ClusterRolesQuery(ctx context.Context) ([]*v1.ClusterRole, error)

func (*Resolver) CreateClusterRoleBinding

func (r *Resolver) CreateClusterRoleBinding(ctx context.Context, name string, params gqlschema.ClusterRoleBindingInput) (*v1.ClusterRoleBinding, error)

func (*Resolver) CreateRoleBinding

func (r *Resolver) CreateRoleBinding(ctx context.Context, namespace string, name string, params gqlschema.RoleBindingInput) (*v1.RoleBinding, error)

func (*Resolver) DeleteClusterRoleBinding

func (r *Resolver) DeleteClusterRoleBinding(ctx context.Context, name string) (*v1.ClusterRoleBinding, error)

func (*Resolver) DeleteRoleBinding

func (r *Resolver) DeleteRoleBinding(ctx context.Context, namespace string, name string) (*v1.RoleBinding, error)

func (*Resolver) RoleBindingService

func (r *Resolver) RoleBindingService() *resource.GenericService

func (*Resolver) RoleBindingSubscription

func (r *Resolver) RoleBindingSubscription(ctx context.Context, namespace string) (<-chan *gqlschema.RoleBindingEvent, error)

func (*Resolver) RoleBindingsQuery

func (r *Resolver) RoleBindingsQuery(ctx context.Context, namespace string) ([]*v1.RoleBinding, error)

func (*Resolver) RoleQuery

func (r *Resolver) RoleQuery(ctx context.Context, namespace string, name string) (*v1.Role, error)

func (*Resolver) RoleService

func (r *Resolver) RoleService() *resource.GenericService

func (*Resolver) RolesQuery

func (r *Resolver) RolesQuery(ctx context.Context, namespace string) ([]*v1.Role, error)

type RoleBindingEventHandler

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

func (*RoleBindingEventHandler) K8sResource

func (h *RoleBindingEventHandler) K8sResource() interface{}

func (*RoleBindingEventHandler) Notify

func (*RoleBindingEventHandler) ShouldNotify

func (h *RoleBindingEventHandler) ShouldNotify() bool

type RoleBindingList

type RoleBindingList []*v1.RoleBinding

func (*RoleBindingList) Append

func (l *RoleBindingList) Append() interface{}

type RolesList

type RolesList []*v1.Role

func (*RolesList) Append

func (l *RolesList) Append() interface{}

type Service

type Service struct {
	*resource.Service
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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