Documentation ¶
Index ¶
- Variables
- type REST
- func (s *REST) Create(ctx apirequest.Context, obj runtime.Object, _ rest.ValidateObjectFunc, _ bool) (runtime.Object, error)
- func (s *REST) Delete(ctx apirequest.Context, name string) (runtime.Object, error)
- func (s *REST) Get(ctx apirequest.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *REST) New() runtime.Object
- func (s *REST) Update(ctx apirequest.Context, name string, objInfo rest.UpdatedObjectInfo, ...) (runtime.Object, bool, error)
Constants ¶
This section is empty.
Variables ¶
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 ¶
func (s *REST) Create(ctx apirequest.Context, obj runtime.Object, _ rest.ValidateObjectFunc, _ bool) (runtime.Object, error)
CreateUser associates a user and identity if they both exist, and the identity is not already mapped to a user
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) Update ¶
func (s *REST) Update(ctx apirequest.Context, name string, objInfo rest.UpdatedObjectInfo, _ rest.ValidateObjectFunc, _ rest.ValidateObjectUpdateFunc) (runtime.Object, bool, error)
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.