kubernetes/vendor/go.etcd.io/etcd/client/v2/auth_user.go

var defaultV2AuthPrefix

type User

type userListEntry

type UserRoles

func v2AuthURL(ep url.URL, action string, name string) *url.URL {}

// NewAuthAPI constructs a new AuthAPI that uses HTTP to
// interact with etcd's general auth features.
func NewAuthAPI(c Client) AuthAPI {}

type AuthAPI

type httpAuthAPI

func (s *httpAuthAPI) Enable(ctx context.Context) error {}

func (s *httpAuthAPI) Disable(ctx context.Context) error {}

func (s *httpAuthAPI) enableDisable(ctx context.Context, req httpAction) error {}

type authAPIAction

func (l *authAPIAction) HTTPRequest(ep url.URL) *http.Request {}

type authError

func (e authError) Error() string {}

// NewAuthUserAPI constructs a new AuthUserAPI that uses HTTP to
// interact with etcd's user creation and modification features.
func NewAuthUserAPI(c Client) AuthUserAPI {}

type AuthUserAPI

type httpAuthUserAPI

type authUserAPIAction

type authUserAPIList

func (list *authUserAPIList) HTTPRequest(ep url.URL) *http.Request {}

func (l *authUserAPIAction) HTTPRequest(ep url.URL) *http.Request {}

func (u *httpAuthUserAPI) ListUsers(ctx context.Context) ([]string, error) {}

func (u *httpAuthUserAPI) AddUser(ctx context.Context, username string, password string) error {}

func (u *httpAuthUserAPI) RemoveUser(ctx context.Context, username string) error {}

func (u *httpAuthUserAPI) addRemoveUser(ctx context.Context, req *authUserAPIAction) error {}

func (u *httpAuthUserAPI) GetUser(ctx context.Context, username string) (*User, error) {}

func (u *httpAuthUserAPI) GrantUser(ctx context.Context, username string, roles []string) (*User, error) {}

func (u *httpAuthUserAPI) RevokeUser(ctx context.Context, username string, roles []string) (*User, error) {}

func (u *httpAuthUserAPI) ChangePassword(ctx context.Context, username string, password string) (*User, error) {}

func (u *httpAuthUserAPI) modUser(ctx context.Context, req *authUserAPIAction) (*User, error) {}