useridentitymapping

package
v3.10.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2018 License: Apache-2.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Strategy = userIdentityMappingStrategy{legacyscheme.Scheme}

Strategy is the default logic that applies when creating UserIdentityMapping objects via the REST API.

Functions

This section is empty.

Types

type REST

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

REST implements the RESTStorage interface in terms of an image registry and image repository registry. It only supports the CreateUser method and is used to simplify adding a new Image and tag to an ImageRepository.

func NewREST

func NewREST(userClient userclient.UserInterface, identityClient userclient.IdentityInterface) *REST

NewREST returns a new REST.

func (*REST) Create

CreateUser associates a user and identity if they both exist, and the identity is not already mapped to a user

func (*REST) Delete

func (s *REST) Delete(ctx apirequest.Context, name string, options *metav1.DeleteOptions) (runtime.Object, bool, error)

Delete deletes the user association for the named identity

func (*REST) Get

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

GetIdentities returns the mapping for the named identity

func (*REST) New

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

New returns a new UserIdentityMapping for use with CreateUser.

func (*REST) Update

UpdateUser associates an identity with a user. Both the identity and user must already exist. If the identity is associated with another user already, it is disassociated.

Jump to

Keyboard shortcuts

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