Documentation ¶
Index ¶
- func ValidateGetObjectAndTenantID(ctx context.Context, store *registry.Store, name string, ...) (runtime.Object, error)
- type BindingREST
- type FinalizeREST
- type GroupREST
- func (r *GroupREST) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)
- func (r *GroupREST) List(ctx context.Context, options *metainternal.ListOptions) (runtime.Object, error)
- func (r *GroupREST) New() runtime.Object
- func (r *GroupREST) NewList() runtime.Object
- type ProjectBindingREST
- type ProjectGroupREST
- func (r *ProjectGroupREST) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)
- func (r *ProjectGroupREST) List(ctx context.Context, options *metainternal.ListOptions) (runtime.Object, error)
- func (r *ProjectGroupREST) New() runtime.Object
- func (r *ProjectGroupREST) NewList() runtime.Object
- type ProjectUnBindingREST
- type ProjectUserREST
- func (r *ProjectUserREST) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)
- func (r *ProjectUserREST) List(ctx context.Context, options *metainternal.ListOptions) (runtime.Object, error)
- func (r *ProjectUserREST) New() runtime.Object
- func (r *ProjectUserREST) NewList() runtime.Object
- type REST
- func (r *REST) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, ...) (runtime.Object, bool, error)
- func (r *REST) DeleteCollection(ctx context.Context, deleteValidation rest.ValidateObjectFunc, ...) (runtime.Object, error)
- func (r *REST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *REST) List(ctx context.Context, options *metainternal.ListOptions) (runtime.Object, error)
- func (r *REST) ShortNames() []string
- func (r *REST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, ...) (runtime.Object, bool, error)
- type RoleREST
- func (r *RoleREST) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)
- func (r *RoleREST) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
- func (r *RoleREST) New() runtime.Object
- func (r *RoleREST) NewList() runtime.Object
- type StatusREST
- type Storage
- type UnbindingREST
- type UserREST
- func (r *UserREST) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)
- func (r *UserREST) List(ctx context.Context, options *metainternal.ListOptions) (runtime.Object, error)
- func (r *UserREST) New() runtime.Object
- func (r *UserREST) NewList() runtime.Object
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BindingREST ¶
type BindingREST struct {
// contains filtered or unexported fields
}
BindingREST implements the REST endpoint.
func (*BindingREST) Create ¶
func (r *BindingREST) Create(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error)
func (*BindingREST) New ¶
func (r *BindingREST) New() runtime.Object
New returns an empty object that can be used with Create after request data has been put into it.
type FinalizeREST ¶
type FinalizeREST struct {
// contains filtered or unexported fields
}
FinalizeREST implements the REST endpoint for finalizing a policy.
func (*FinalizeREST) Get ¶
func (r *FinalizeREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
Get retrieves the object from the storage. It is required to support Patch.
func (*FinalizeREST) New ¶
func (r *FinalizeREST) 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 (*FinalizeREST) Update ¶
func (r *FinalizeREST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error)
Update alters the status finalizers subset of an object.
type GroupREST ¶
type GroupREST struct {
// contains filtered or unexported fields
}
GroupREST implements the REST endpoint.
func (*GroupREST) ConvertToTable ¶ added in v1.3.1
func (r *GroupREST) 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 (*GroupREST) List ¶
func (r *GroupREST) 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.
type ProjectBindingREST ¶ added in v1.3.1
type ProjectBindingREST struct {
// contains filtered or unexported fields
}
ProjectBindingREST implements the REST endpoint.
func (*ProjectBindingREST) Create ¶ added in v1.3.1
func (r *ProjectBindingREST) Create(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error)
func (*ProjectBindingREST) New ¶ added in v1.3.1
func (r *ProjectBindingREST) New() runtime.Object
New returns an empty object that can be used with Create after request data has been put into it.
type ProjectGroupREST ¶ added in v1.3.1
type ProjectGroupREST struct {
// contains filtered or unexported fields
}
ProjectGroupREST implements the REST endpoint.
func (*ProjectGroupREST) ConvertToTable ¶ added in v1.3.1
func (r *ProjectGroupREST) 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 (*ProjectGroupREST) List ¶ added in v1.3.1
func (r *ProjectGroupREST) 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 (*ProjectGroupREST) New ¶ added in v1.3.1
func (r *ProjectGroupREST) New() runtime.Object
New returns an empty object that can be used with Create after request data has been put into it.
func (*ProjectGroupREST) NewList ¶ added in v1.3.1
func (r *ProjectGroupREST) NewList() runtime.Object
NewList returns an empty object that can be used with the List call.
type ProjectUnBindingREST ¶ added in v1.3.1
type ProjectUnBindingREST struct {
// contains filtered or unexported fields
}
ProjectUnBindingREST implements the REST endpoint.
func (*ProjectUnBindingREST) Create ¶ added in v1.3.1
func (r *ProjectUnBindingREST) Create(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error)
func (*ProjectUnBindingREST) New ¶ added in v1.3.1
func (r *ProjectUnBindingREST) New() runtime.Object
New returns an empty object that can be used with Create after request data has been put into it.
type ProjectUserREST ¶ added in v1.3.1
type ProjectUserREST struct {
// contains filtered or unexported fields
}
ProjectUserREST implements the REST endpoint.
func (*ProjectUserREST) ConvertToTable ¶ added in v1.3.1
func (r *ProjectUserREST) 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 (*ProjectUserREST) List ¶ added in v1.3.1
func (r *ProjectUserREST) 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 (*ProjectUserREST) New ¶ added in v1.3.1
func (r *ProjectUserREST) New() runtime.Object
New returns an empty object that can be used with Create after request data has been put into it.
func (*ProjectUserREST) NewList ¶ added in v1.3.1
func (r *ProjectUserREST) NewList() runtime.Object
NewList returns an empty object that can be used with the List call.
type REST ¶
REST implements a RESTStorage for clusters against etcd.
func (*REST) Delete ¶
func (r *REST) Delete(ctx context.Context, name string, deleteValidation rest.ValidateObjectFunc, options *metav1.DeleteOptions) (runtime.Object, bool, error)
Delete enforces life-cycle rules for policy termination
func (*REST) DeleteCollection ¶
func (r *REST) DeleteCollection(ctx context.Context, deleteValidation rest.ValidateObjectFunc, options *metav1.DeleteOptions, listOptions *metainternal.ListOptions) (runtime.Object, error)
DeleteCollection selects all resources in the storage matching given 'listOptions' and deletes them.
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) ShortNames ¶
ShortNames implements the ShortNamesProvider interface. Returns a list of short names for a resource.
func (*REST) Update ¶
func (r *REST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error)
Update alters the object subset of an object.
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 (r *RoleREST) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
type StatusREST ¶
type StatusREST struct {
// contains filtered or unexported fields
}
StatusREST implements the REST endpoint for changing the status of a replication controller.
func (*StatusREST) Get ¶
func (r *StatusREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
Get retrieves the object from the storage. It is required to support Patch.
func (*StatusREST) New ¶
func (r *StatusREST) 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 (*StatusREST) Update ¶
func (r *StatusREST) Update(ctx context.Context, name string, objInfo rest.UpdatedObjectInfo, createValidation rest.ValidateObjectFunc, updateValidation rest.ValidateObjectUpdateFunc, forceAllowCreate bool, options *metav1.UpdateOptions) (runtime.Object, bool, error)
Update alters the status subset of an object.
type Storage ¶
type Storage struct { Policy *REST Status *StatusREST Finalize *FinalizeREST Binding *BindingREST Unbinding *UnbindingREST ProjectBinding *ProjectBindingREST ProjectUnBinding *ProjectUnBindingREST Role *RoleREST User *UserREST Group *GroupREST ProjectUser *ProjectUserREST ProjectGroup *ProjectGroupREST }
Storage includes storage for policies and all sub resources.
func NewStorage ¶
func NewStorage(optsGetter generic.RESTOptionsGetter, authClient authinternalclient.AuthInterface, enforcer *casbin.SyncedEnforcer, privilegedUsername string) *Storage
NewStorage returns a Storage object that will work against policies.
type UnbindingREST ¶
type UnbindingREST struct {
// contains filtered or unexported fields
}
UnbindingREST implements the REST endpoint.
func (*UnbindingREST) Create ¶
func (r *UnbindingREST) Create(ctx context.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, options *metav1.CreateOptions) (runtime.Object, error)
func (*UnbindingREST) New ¶
func (r *UnbindingREST) New() runtime.Object
New returns an empty object that can be used with Create after request data has been put into it.
type UserREST ¶
type UserREST struct {
// contains filtered or unexported fields
}
UserREST implements the REST endpoint.
func (*UserREST) ConvertToTable ¶ added in v1.3.1
func (r *UserREST) 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 (*UserREST) List ¶
func (r *UserREST) 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.