Documentation ¶
Index ¶
- type BindingREST
- type GroupREST
- func (r *GroupREST) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)
- func (r *GroupREST) Create(ctx context.Context, obj runtime.Object, ...) (runtime.Object, 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 PolicyREST
- func (r *PolicyREST) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)
- func (r *PolicyREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *PolicyREST) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
- func (r *PolicyREST) New() runtime.Object
- func (r *PolicyREST) NewList() runtime.Object
- type REST
- func (r *REST) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)
- func (r *REST) Get(ctx context.Context, projectName string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *REST) List(ctx context.Context, options *metainternal.ListOptions) (runtime.Object, error)
- func (r *REST) NamespaceScoped() bool
- func (r *REST) New() runtime.Object
- func (r *REST) NewList() runtime.Object
- 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) Create(ctx context.Context, obj runtime.Object, ...) (runtime.Object, 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 ¶
This section is empty.
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 GroupREST ¶
type GroupREST struct { Binding *BindingREST UnBinding *UnBindingREST // contains filtered or unexported fields }
GroupREST implements the REST endpoint.
func (*GroupREST) ConvertToTable ¶
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 PolicyREST ¶
type PolicyREST struct {
// contains filtered or unexported fields
}
PolicyREST implements the REST endpoint, list policies bound to the user.
func (*PolicyREST) ConvertToTable ¶
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) Get ¶
func (r *PolicyREST) 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 (*PolicyREST) List ¶
func (r *PolicyREST) List(ctx context.Context, options *metainternalversion.ListOptions) (runtime.Object, error)
List selects resources in the storage which match to the selector. 'options' can be nil.
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 REST ¶
REST implements a RESTStorage for configmap against etcd.
func (*REST) ConvertToTable ¶
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) Get ¶
func (r *REST) Get(ctx context.Context, projectName 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)
func (*REST) NamespaceScoped ¶
type Storage ¶
type Storage struct { Project *REST User *UserREST Group *GroupREST Policy *PolicyREST Binding *BindingREST UnBinding *UnBindingREST }
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.
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 { Binding *BindingREST UnBinding *UnBindingREST // contains filtered or unexported fields }
UserREST implements the REST endpoint.
func (*UserREST) ConvertToTable ¶
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.