Documentation ¶
Index ¶
- Variables
- type REST
- func (s *REST) Create(ctx kapi.Context, obj runtime.Object) (runtime.Object, error)
- func (s *REST) Delete(ctx kapi.Context, name string) (runtime.Object, error)
- func (s *REST) Get(ctx kapi.Context, name string) (runtime.Object, error)
- func (r *REST) New() runtime.Object
- func (s *REST) Update(ctx kapi.Context, obj runtime.Object) (runtime.Object, bool, error)
- type Registry
- type Storage
Constants ¶
This section is empty.
Variables ¶
var Strategy = userIdentityMappingStrategy{kapi.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 Create method and is used to simplify adding a new Image and tag to an ImageRepository.
func (*REST) Create ¶
Create associates a user and identity if they both exist, and the identity is not already mapped to a user
type Registry ¶
type Registry interface { // GetUserIdentityMapping returns a UserIdentityMapping for the named identity GetUserIdentityMapping(ctx kapi.Context, name string) (*api.UserIdentityMapping, error) // CreateUserIdentityMapping associates a user and an identity CreateUserIdentityMapping(ctx kapi.Context, mapping *api.UserIdentityMapping) (*api.UserIdentityMapping, error) // UpdateUserIdentityMapping updates an associated user and identity UpdateUserIdentityMapping(ctx kapi.Context, mapping *api.UserIdentityMapping) (*api.UserIdentityMapping, error) // DeleteUserIdentityMapping removes the user association for the named identity DeleteUserIdentityMapping(ctx kapi.Context, name string) error }
Registry is an interface implemented by things that know how to store UserIdentityMapping objects.
func NewRegistry ¶ added in v0.4.2
NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.
type Storage ¶ added in v0.4.2
type Storage interface { apiserver.RESTGetter apiserver.RESTDeleter Create(ctx kapi.Context, obj runtime.Object) (runtime.Object, error) Update(ctx kapi.Context, obj runtime.Object) (runtime.Object, bool, error) }
Storage is an interface for a standard REST Storage backend TODO: move me somewhere common