v1

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Overview

Definitions for the Kubernetes types

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClusterRoleBindingClient

func NewClusterRoleBindingClient(client client.Client) *clusterRoleBindingClient

func NewClusterRoleClient

func NewClusterRoleClient(client client.Client) *clusterRoleClient

func NewRoleBindingClient

func NewRoleBindingClient(client client.Client) *roleBindingClient

func NewRoleClient

func NewRoleClient(client client.Client) *roleClient

Types

type Clientset

type Clientset interface {
	// clienset for the rbac.authorization.k8s.io/v1/v1 APIs
	Roles() RoleClient
	// clienset for the rbac.authorization.k8s.io/v1/v1 APIs
	RoleBindings() RoleBindingClient
	// clienset for the rbac.authorization.k8s.io/v1/v1 APIs
	ClusterRoles() ClusterRoleClient
	// clienset for the rbac.authorization.k8s.io/v1/v1 APIs
	ClusterRoleBindings() ClusterRoleBindingClient
}

clienset for the rbac.authorization.k8s.io/v1 APIs

func NewClientset

func NewClientset(client client.Client) Clientset

func NewClientsetFromConfig

func NewClientsetFromConfig(cfg *rest.Config) (Clientset, error)

type ClusterRoleBindingClient

Client knows how to perform CRUD operations on ClusterRoleBindings.

type ClusterRoleBindingReader

type ClusterRoleBindingReader interface {
	// Get retrieves a ClusterRoleBinding for the given object key
	GetClusterRoleBinding(ctx context.Context, name string) (*rbac_authorization_k8s_io_v1.ClusterRoleBinding, error)

	// List retrieves list of ClusterRoleBindings for a given namespace and list options.
	ListClusterRoleBinding(ctx context.Context, opts ...client.ListOption) (*rbac_authorization_k8s_io_v1.ClusterRoleBindingList, error)
}

Reader knows how to read and list ClusterRoleBindings.

type ClusterRoleBindingSlice

type ClusterRoleBindingSlice []*ClusterRoleBinding

ClusterRoleBindingSlice represents a slice of *ClusterRoleBinding

type ClusterRoleBindingStatusWriter

type ClusterRoleBindingStatusWriter interface {
	// Update updates the fields corresponding to the status subresource for the
	// given ClusterRoleBinding object.
	UpdateClusterRoleBindingStatus(ctx context.Context, obj *rbac_authorization_k8s_io_v1.ClusterRoleBinding, opts ...client.SubResourceUpdateOption) error

	// Patch patches the given ClusterRoleBinding object's subresource.
	PatchClusterRoleBindingStatus(ctx context.Context, obj *rbac_authorization_k8s_io_v1.ClusterRoleBinding, patch client.Patch, opts ...client.SubResourcePatchOption) error
}

StatusWriter knows how to update status subresource of a ClusterRoleBinding object.

type ClusterRoleBindingTransitionFunction

type ClusterRoleBindingTransitionFunction func(existing, desired *rbac_authorization_k8s_io_v1.ClusterRoleBinding) error

ClusterRoleBindingTransitionFunction instructs the ClusterRoleBindingWriter how to transition between an existing ClusterRoleBinding object and a desired on an Upsert

type ClusterRoleBindingWriter

type ClusterRoleBindingWriter interface {
	// Create saves the ClusterRoleBinding object.
	CreateClusterRoleBinding(ctx context.Context, obj *rbac_authorization_k8s_io_v1.ClusterRoleBinding, opts ...client.CreateOption) error

	// Delete deletes the ClusterRoleBinding object.
	DeleteClusterRoleBinding(ctx context.Context, name string, opts ...client.DeleteOption) error

	// Update updates the given ClusterRoleBinding object.
	UpdateClusterRoleBinding(ctx context.Context, obj *rbac_authorization_k8s_io_v1.ClusterRoleBinding, opts ...client.UpdateOption) error

	// Patch patches the given ClusterRoleBinding object.
	PatchClusterRoleBinding(ctx context.Context, obj *rbac_authorization_k8s_io_v1.ClusterRoleBinding, patch client.Patch, opts ...client.PatchOption) error

	// DeleteAllOf deletes all ClusterRoleBinding objects matching the given options.
	DeleteAllOfClusterRoleBinding(ctx context.Context, opts ...client.DeleteAllOfOption) error

	// Create or Update the ClusterRoleBinding object.
	UpsertClusterRoleBinding(ctx context.Context, obj *rbac_authorization_k8s_io_v1.ClusterRoleBinding, transitionFuncs ...ClusterRoleBindingTransitionFunction) error
}

Writer knows how to create, delete, and update ClusterRoleBindings.

type ClusterRoleClient

type ClusterRoleClient interface {
	ClusterRoleReader
	ClusterRoleWriter
	ClusterRoleStatusWriter
}

Client knows how to perform CRUD operations on ClusterRoles.

type ClusterRoleReader

type ClusterRoleReader interface {
	// Get retrieves a ClusterRole for the given object key
	GetClusterRole(ctx context.Context, name string) (*rbac_authorization_k8s_io_v1.ClusterRole, error)

	// List retrieves list of ClusterRoles for a given namespace and list options.
	ListClusterRole(ctx context.Context, opts ...client.ListOption) (*rbac_authorization_k8s_io_v1.ClusterRoleList, error)
}

Reader knows how to read and list ClusterRoles.

type ClusterRoleSlice

type ClusterRoleSlice []*ClusterRole

ClusterRoleSlice represents a slice of *ClusterRole

type ClusterRoleStatusWriter

type ClusterRoleStatusWriter interface {
	// Update updates the fields corresponding to the status subresource for the
	// given ClusterRole object.
	UpdateClusterRoleStatus(ctx context.Context, obj *rbac_authorization_k8s_io_v1.ClusterRole, opts ...client.SubResourceUpdateOption) error

	// Patch patches the given ClusterRole object's subresource.
	PatchClusterRoleStatus(ctx context.Context, obj *rbac_authorization_k8s_io_v1.ClusterRole, patch client.Patch, opts ...client.SubResourcePatchOption) error
}

StatusWriter knows how to update status subresource of a ClusterRole object.

type ClusterRoleTransitionFunction

type ClusterRoleTransitionFunction func(existing, desired *rbac_authorization_k8s_io_v1.ClusterRole) error

ClusterRoleTransitionFunction instructs the ClusterRoleWriter how to transition between an existing ClusterRole object and a desired on an Upsert

type ClusterRoleWriter

type ClusterRoleWriter interface {
	// Create saves the ClusterRole object.
	CreateClusterRole(ctx context.Context, obj *rbac_authorization_k8s_io_v1.ClusterRole, opts ...client.CreateOption) error

	// Delete deletes the ClusterRole object.
	DeleteClusterRole(ctx context.Context, name string, opts ...client.DeleteOption) error

	// Update updates the given ClusterRole object.
	UpdateClusterRole(ctx context.Context, obj *rbac_authorization_k8s_io_v1.ClusterRole, opts ...client.UpdateOption) error

	// Patch patches the given ClusterRole object.
	PatchClusterRole(ctx context.Context, obj *rbac_authorization_k8s_io_v1.ClusterRole, patch client.Patch, opts ...client.PatchOption) error

	// DeleteAllOf deletes all ClusterRole objects matching the given options.
	DeleteAllOfClusterRole(ctx context.Context, opts ...client.DeleteAllOfOption) error

	// Create or Update the ClusterRole object.
	UpsertClusterRole(ctx context.Context, obj *rbac_authorization_k8s_io_v1.ClusterRole, transitionFuncs ...ClusterRoleTransitionFunction) error
}

Writer knows how to create, delete, and update ClusterRoles.

type MulticlusterClientset

type MulticlusterClientset interface {
	// Cluster returns a Clientset for the given cluster
	Cluster(cluster string) (Clientset, error)
}

MulticlusterClientset for the rbac.authorization.k8s.io/v1 APIs

func NewMulticlusterClientset

func NewMulticlusterClientset(client multicluster.Client) MulticlusterClientset

type MulticlusterClusterRoleBindingClient

type MulticlusterClusterRoleBindingClient interface {
	// Cluster returns a ClusterRoleBindingClient for the given cluster
	Cluster(cluster string) (ClusterRoleBindingClient, error)
}

Provides ClusterRoleBindingClients for multiple clusters.

func NewMulticlusterClusterRoleBindingClient

func NewMulticlusterClusterRoleBindingClient(client multicluster.Client) MulticlusterClusterRoleBindingClient

type MulticlusterClusterRoleClient

type MulticlusterClusterRoleClient interface {
	// Cluster returns a ClusterRoleClient for the given cluster
	Cluster(cluster string) (ClusterRoleClient, error)
}

Provides ClusterRoleClients for multiple clusters.

func NewMulticlusterClusterRoleClient

func NewMulticlusterClusterRoleClient(client multicluster.Client) MulticlusterClusterRoleClient

type MulticlusterRoleBindingClient

type MulticlusterRoleBindingClient interface {
	// Cluster returns a RoleBindingClient for the given cluster
	Cluster(cluster string) (RoleBindingClient, error)
}

Provides RoleBindingClients for multiple clusters.

func NewMulticlusterRoleBindingClient

func NewMulticlusterRoleBindingClient(client multicluster.Client) MulticlusterRoleBindingClient

type MulticlusterRoleClient

type MulticlusterRoleClient interface {
	// Cluster returns a RoleClient for the given cluster
	Cluster(cluster string) (RoleClient, error)
}

Provides RoleClients for multiple clusters.

func NewMulticlusterRoleClient

func NewMulticlusterRoleClient(client multicluster.Client) MulticlusterRoleClient

type RoleBindingClient

type RoleBindingClient interface {
	RoleBindingReader
	RoleBindingWriter
	RoleBindingStatusWriter
}

Client knows how to perform CRUD operations on RoleBindings.

type RoleBindingReader

type RoleBindingReader interface {
	// Get retrieves a RoleBinding for the given object key
	GetRoleBinding(ctx context.Context, key client.ObjectKey) (*rbac_authorization_k8s_io_v1.RoleBinding, error)

	// List retrieves list of RoleBindings for a given namespace and list options.
	ListRoleBinding(ctx context.Context, opts ...client.ListOption) (*rbac_authorization_k8s_io_v1.RoleBindingList, error)
}

Reader knows how to read and list RoleBindings.

type RoleBindingSlice

type RoleBindingSlice []*RoleBinding

RoleBindingSlice represents a slice of *RoleBinding

type RoleBindingStatusWriter

type RoleBindingStatusWriter interface {
	// Update updates the fields corresponding to the status subresource for the
	// given RoleBinding object.
	UpdateRoleBindingStatus(ctx context.Context, obj *rbac_authorization_k8s_io_v1.RoleBinding, opts ...client.SubResourceUpdateOption) error

	// Patch patches the given RoleBinding object's subresource.
	PatchRoleBindingStatus(ctx context.Context, obj *rbac_authorization_k8s_io_v1.RoleBinding, patch client.Patch, opts ...client.SubResourcePatchOption) error
}

StatusWriter knows how to update status subresource of a RoleBinding object.

type RoleBindingTransitionFunction

type RoleBindingTransitionFunction func(existing, desired *rbac_authorization_k8s_io_v1.RoleBinding) error

RoleBindingTransitionFunction instructs the RoleBindingWriter how to transition between an existing RoleBinding object and a desired on an Upsert

type RoleBindingWriter

type RoleBindingWriter interface {
	// Create saves the RoleBinding object.
	CreateRoleBinding(ctx context.Context, obj *rbac_authorization_k8s_io_v1.RoleBinding, opts ...client.CreateOption) error

	// Delete deletes the RoleBinding object.
	DeleteRoleBinding(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error

	// Update updates the given RoleBinding object.
	UpdateRoleBinding(ctx context.Context, obj *rbac_authorization_k8s_io_v1.RoleBinding, opts ...client.UpdateOption) error

	// Patch patches the given RoleBinding object.
	PatchRoleBinding(ctx context.Context, obj *rbac_authorization_k8s_io_v1.RoleBinding, patch client.Patch, opts ...client.PatchOption) error

	// DeleteAllOf deletes all RoleBinding objects matching the given options.
	DeleteAllOfRoleBinding(ctx context.Context, opts ...client.DeleteAllOfOption) error

	// Create or Update the RoleBinding object.
	UpsertRoleBinding(ctx context.Context, obj *rbac_authorization_k8s_io_v1.RoleBinding, transitionFuncs ...RoleBindingTransitionFunction) error
}

Writer knows how to create, delete, and update RoleBindings.

type RoleClient

type RoleClient interface {
	RoleReader
	RoleWriter
	RoleStatusWriter
}

Client knows how to perform CRUD operations on Roles.

type RoleReader

type RoleReader interface {
	// Get retrieves a Role for the given object key
	GetRole(ctx context.Context, key client.ObjectKey) (*rbac_authorization_k8s_io_v1.Role, error)

	// List retrieves list of Roles for a given namespace and list options.
	ListRole(ctx context.Context, opts ...client.ListOption) (*rbac_authorization_k8s_io_v1.RoleList, error)
}

Reader knows how to read and list Roles.

type RoleSlice

type RoleSlice []*Role

RoleSlice represents a slice of *Role

type RoleStatusWriter

type RoleStatusWriter interface {
	// Update updates the fields corresponding to the status subresource for the
	// given Role object.
	UpdateRoleStatus(ctx context.Context, obj *rbac_authorization_k8s_io_v1.Role, opts ...client.SubResourceUpdateOption) error

	// Patch patches the given Role object's subresource.
	PatchRoleStatus(ctx context.Context, obj *rbac_authorization_k8s_io_v1.Role, patch client.Patch, opts ...client.SubResourcePatchOption) error
}

StatusWriter knows how to update status subresource of a Role object.

type RoleTransitionFunction

type RoleTransitionFunction func(existing, desired *rbac_authorization_k8s_io_v1.Role) error

RoleTransitionFunction instructs the RoleWriter how to transition between an existing Role object and a desired on an Upsert

type RoleWriter

type RoleWriter interface {
	// Create saves the Role object.
	CreateRole(ctx context.Context, obj *rbac_authorization_k8s_io_v1.Role, opts ...client.CreateOption) error

	// Delete deletes the Role object.
	DeleteRole(ctx context.Context, key client.ObjectKey, opts ...client.DeleteOption) error

	// Update updates the given Role object.
	UpdateRole(ctx context.Context, obj *rbac_authorization_k8s_io_v1.Role, opts ...client.UpdateOption) error

	// Patch patches the given Role object.
	PatchRole(ctx context.Context, obj *rbac_authorization_k8s_io_v1.Role, patch client.Patch, opts ...client.PatchOption) error

	// DeleteAllOf deletes all Role objects matching the given options.
	DeleteAllOfRole(ctx context.Context, opts ...client.DeleteAllOfOption) error

	// Create or Update the Role object.
	UpsertRole(ctx context.Context, obj *rbac_authorization_k8s_io_v1.Role, transitionFuncs ...RoleTransitionFunction) error
}

Writer knows how to create, delete, and update Roles.

Directories

Path Synopsis
Definitions for the Kubernetes Controllers
Definitions for the Kubernetes Controllers
mocks
Package mock_controller is a generated GoMock package.
Package mock_controller is a generated GoMock package.
Package mock_v1 is a generated GoMock package.
Package mock_v1 is a generated GoMock package.
mocks
Package mock_v1sets is a generated GoMock package.
Package mock_v1sets is a generated GoMock package.

Jump to

Keyboard shortcuts

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