storage

package
v1.9.0-industry.6 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PolicyREST

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

PolicyREST implements the REST endpoint, list policies bound to the user.

func (*PolicyREST) ConvertToTable added in v1.3.1

func (r *PolicyREST) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)

ConvertToTable converts objects to metav1.Table objects using default table convertor.

func (*PolicyREST) List

func (*PolicyREST) New

func (r *PolicyREST) New() runtime.Object

New returns an empty object that can be used with Create after request data has been put into it.

func (*PolicyREST) NewList

func (r *PolicyREST) NewList() runtime.Object

NewList returns an empty object that can be used with the List call.

type ProjectREST added in v1.3.1

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

ProjectREST implements the REST endpoint, list policies bound to the user.

func (*ProjectREST) ConvertToTable added in v1.3.1

func (r *ProjectREST) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)

ConvertToTable converts objects to metav1.Table objects using default table convertor.

func (*ProjectREST) List added in v1.3.1

func (*ProjectREST) New added in v1.3.1

func (r *ProjectREST) New() runtime.Object

New returns an empty object that can be used with Create after request data has been put into it.

func (*ProjectREST) NewList added in v1.3.1

func (r *ProjectREST) NewList() runtime.Object

NewList returns an empty object that can be used with the List call.

type REST

type REST struct {
	rest.Storage
}

REST implements a RESTStorage for configmap against etcd.

func (*REST) ConvertToTable added in v1.3.1

func (r *REST) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)

ConvertToTable converts objects to metav1.Table objects using default table convertor.

func (*REST) Create

func (r *REST) Create(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error)

Create creates a new version of a resource.

func (*REST) Get

func (r *REST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)

Get finds a resource in the storage by name and returns it.

func (*REST) List

func (r *REST) List(ctx context.Context, options *metainternal.ListOptions) (runtime.Object, error)

List selects resources in the storage which match to the selector. 'options' can be nil.

func (*REST) NamespaceScoped

func (r *REST) NamespaceScoped() bool

func (*REST) New

func (r *REST) New() runtime.Object

New returns an empty object that can be used with Create and Update after request data has been put into it.

func (*REST) NewList

func (r *REST) NewList() runtime.Object

NewList returns an empty object that can be used with the List call.

func (*REST) ShortNames

func (r *REST) ShortNames() []string

ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.

type RoleREST

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

RoleREST implements the REST endpoint, list policies bound to the user.

func (*RoleREST) ConvertToTable added in v1.3.1

func (r *RoleREST) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)

ConvertToTable converts objects to metav1.Table objects using default table convertor.

func (*RoleREST) List

func (*RoleREST) New

func (r *RoleREST) New() runtime.Object

New returns an empty object that can be used with Create after request data has been put into it.

func (*RoleREST) NewList

func (r *RoleREST) NewList() runtime.Object

NewList returns an empty object that can be used with the List call.

type Storage

type Storage struct {
	User    *REST
	Policy  *PolicyREST
	Role    *RoleREST
	Project *ProjectREST
}

Storage includes storage for configmap and all sub resources.

func NewStorage

func NewStorage(_ genericregistry.RESTOptionsGetter, authClient authinternalclient.AuthInterface, enforcer *casbin.SyncedEnforcer) *Storage

NewStorage returns a Storage object that will work against configmap.

Jump to

Keyboard shortcuts

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