kubernetes/vendor/go.etcd.io/etcd/client/v3/auth.go

type AuthEnableResponse

type AuthDisableResponse

type AuthStatusResponse

type AuthenticateResponse

type AuthUserAddResponse

type AuthUserDeleteResponse

type AuthUserChangePasswordResponse

type AuthUserGrantRoleResponse

type AuthUserGetResponse

type AuthUserRevokeRoleResponse

type AuthRoleAddResponse

type AuthRoleGrantPermissionResponse

type AuthRoleGetResponse

type AuthRoleRevokePermissionResponse

type AuthRoleDeleteResponse

type AuthUserListResponse

type AuthRoleListResponse

type PermissionType

type Permission

const PermRead

const PermWrite

const PermReadWrite

type UserAddOptions

type Auth

type authClient

func NewAuth(c *Client) Auth {}

func NewAuthFromAuthClient(remote pb.AuthClient, c *Client) Auth {}

func (auth *authClient) Authenticate(ctx context.Context, name string, password string) (*AuthenticateResponse, error) {}

func (auth *authClient) AuthEnable(ctx context.Context) (*AuthEnableResponse, error) {}

func (auth *authClient) AuthDisable(ctx context.Context) (*AuthDisableResponse, error) {}

func (auth *authClient) AuthStatus(ctx context.Context) (*AuthStatusResponse, error) {}

func (auth *authClient) UserAdd(ctx context.Context, name string, password string) (*AuthUserAddResponse, error) {}

func (auth *authClient) UserAddWithOptions(ctx context.Context, name string, password string, options *UserAddOptions) (*AuthUserAddResponse, error) {}

func (auth *authClient) UserDelete(ctx context.Context, name string) (*AuthUserDeleteResponse, error) {}

func (auth *authClient) UserChangePassword(ctx context.Context, name string, password string) (*AuthUserChangePasswordResponse, error) {}

func (auth *authClient) UserGrantRole(ctx context.Context, user string, role string) (*AuthUserGrantRoleResponse, error) {}

func (auth *authClient) UserGet(ctx context.Context, name string) (*AuthUserGetResponse, error) {}

func (auth *authClient) UserList(ctx context.Context) (*AuthUserListResponse, error) {}

func (auth *authClient) UserRevokeRole(ctx context.Context, name string, role string) (*AuthUserRevokeRoleResponse, error) {}

func (auth *authClient) RoleAdd(ctx context.Context, name string) (*AuthRoleAddResponse, error) {}

func (auth *authClient) RoleGrantPermission(ctx context.Context, name string, key, rangeEnd string, permType PermissionType) (*AuthRoleGrantPermissionResponse, error) {}

func (auth *authClient) RoleGet(ctx context.Context, role string) (*AuthRoleGetResponse, error) {}

func (auth *authClient) RoleList(ctx context.Context) (*AuthRoleListResponse, error) {}

func (auth *authClient) RoleRevokePermission(ctx context.Context, role string, key, rangeEnd string) (*AuthRoleRevokePermissionResponse, error) {}

func (auth *authClient) RoleDelete(ctx context.Context, role string) (*AuthRoleDeleteResponse, error) {}

func StrToPermissionType(s string) (PermissionType, error) {}