Documentation ¶
Index ¶
- type LoginRecordReader
- type LoginRecordReaderEx
- type LoginRecordWriter
- type Operator
- type RoleBindingReader
- type RoleBindingReaderEx
- type RoleBindingWriter
- type RoleReader
- type RoleReaderEx
- type RoleWriter
- type TokenReader
- type TokenReaderEx
- type TokenWriter
- type UserReader
- type UserReaderEx
- type UserWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginRecordReader ¶
type LoginRecordReader interface { ListLoginRecords(ctx context.Context, query *query.Query) (*iamv1.LoginRecordList, error) WatchLoginRecords(ctx context.Context, query *query.Query) (watch.Interface, error) GetLoginRecord(ctx context.Context, name string) (*iamv1.LoginRecord, error) LoginRecordReaderEx }
type LoginRecordReaderEx ¶
type LoginRecordWriter ¶
type Operator ¶
type Operator interface { UserReader UserWriter RoleReader RoleWriter RoleBindingReader RoleBindingWriter TokenReader TokenWriter LoginRecordReader LoginRecordWriter }
func NewOperator ¶
func NewOperator(userStorage rest.StandardStorage, roleStorage rest.StandardStorage, roleBindingStorage rest.StandardStorage, tokenStorage rest.StandardStorage, loginRecordStorage rest.StandardStorage) Operator
type RoleBindingReader ¶
type RoleBindingReader interface { ListRoleBindings(ctx context.Context, query *query.Query) (*iamv1.GlobalRoleBindingList, error) WatchRoleBindings(ctx context.Context, query *query.Query) (watch.Interface, error) GetRoleBinding(ctx context.Context, name string) (*iamv1.GlobalRoleBinding, error) RoleBindingReaderEx }
type RoleBindingReaderEx ¶
type RoleBindingWriter ¶
type RoleBindingWriter interface { CreateRoleBinding(ctx context.Context, role *iamv1.GlobalRoleBinding) (*iamv1.GlobalRoleBinding, error) UpdateRoleBinding(ctx context.Context, role *iamv1.GlobalRoleBinding) (*iamv1.GlobalRoleBinding, error) DeleteRoleBinding(ctx context.Context, name string) error }
type RoleReader ¶
type RoleReaderEx ¶
type RoleWriter ¶
type RoleWriter interface { CreateRole(ctx context.Context, role *iamv1.GlobalRole) (*iamv1.GlobalRole, error) UpdateRole(ctx context.Context, role *iamv1.GlobalRole) (*iamv1.GlobalRole, error) DeleteRole(ctx context.Context, name string) error }
type TokenReader ¶
type TokenReaderEx ¶
type TokenWriter ¶
type TokenWriter interface { CreateToken(ctx context.Context, token *iamv1.Token) (*iamv1.Token, error) UpdateToken(ctx context.Context, token *iamv1.Token) (*iamv1.Token, error) DeleteToken(ctx context.Context, name string) error DeleteTokenCollection(ctx context.Context, query *query.Query) error }
type UserReader ¶
type UserReaderEx ¶
type UserReaderEx interface { GetUserEx(ctx context.Context, name string, resourceVersion string, desensitization bool, includeRole bool) (*iamv1.User, error) ListUserEx(ctx context.Context, query *query.Query, desensitization bool, includeRole bool) (*models.PageableResponse, error) ListUsersByRole(ctx context.Context, query *query.Query, role string) (*models.PageableResponse, error) }
Click to show internal directories.
Click to hide internal directories.