Documentation
¶
Overview ¶
Package user provides user and group API handlers.
Index ¶
- func Handler(logger *slog.Logger, jobClient client.JobClient, signingKey string, ...) []func(e *echo.Echo)
- type User
- func (u *User) DeleteNodeGroup(ctx context.Context, request gen.DeleteNodeGroupRequestObject) (gen.DeleteNodeGroupResponseObject, error)
- func (u *User) DeleteNodeUser(ctx context.Context, request gen.DeleteNodeUserRequestObject) (gen.DeleteNodeUserResponseObject, error)
- func (u *User) DeleteNodeUserSSHKey(ctx context.Context, request gen.DeleteNodeUserSSHKeyRequestObject) (gen.DeleteNodeUserSSHKeyResponseObject, error)
- func (u *User) GetNodeGroup(ctx context.Context, request gen.GetNodeGroupRequestObject) (gen.GetNodeGroupResponseObject, error)
- func (u *User) GetNodeGroupByName(ctx context.Context, request gen.GetNodeGroupByNameRequestObject) (gen.GetNodeGroupByNameResponseObject, error)
- func (u *User) GetNodeUser(ctx context.Context, request gen.GetNodeUserRequestObject) (gen.GetNodeUserResponseObject, error)
- func (u *User) GetNodeUserByName(ctx context.Context, request gen.GetNodeUserByNameRequestObject) (gen.GetNodeUserByNameResponseObject, error)
- func (u *User) GetNodeUserSSHKey(ctx context.Context, request gen.GetNodeUserSSHKeyRequestObject) (gen.GetNodeUserSSHKeyResponseObject, error)
- func (u *User) PostNodeGroup(ctx context.Context, request gen.PostNodeGroupRequestObject) (gen.PostNodeGroupResponseObject, error)
- func (u *User) PostNodeUser(ctx context.Context, request gen.PostNodeUserRequestObject) (gen.PostNodeUserResponseObject, error)
- func (u *User) PostNodeUserPassword(ctx context.Context, request gen.PostNodeUserPasswordRequestObject) (gen.PostNodeUserPasswordResponseObject, error)
- func (u *User) PostNodeUserSSHKey(ctx context.Context, request gen.PostNodeUserSSHKeyRequestObject) (gen.PostNodeUserSSHKeyResponseObject, error)
- func (u *User) PutNodeGroup(ctx context.Context, request gen.PutNodeGroupRequestObject) (gen.PutNodeGroupResponseObject, error)
- func (u *User) PutNodeUser(ctx context.Context, request gen.PutNodeUserRequestObject) (gen.PutNodeUserResponseObject, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type User ¶
type User struct {
// JobClient provides job-based operations for user and group management.
JobClient client.JobClient
// contains filtered or unexported fields
}
User implementation of the User and Group APIs operations.
func (*User) DeleteNodeGroup ¶
func (u *User) DeleteNodeGroup( ctx context.Context, request gen.DeleteNodeGroupRequestObject, ) (gen.DeleteNodeGroupResponseObject, error)
DeleteNodeGroup deletes a group on a target node.
func (*User) DeleteNodeUser ¶
func (u *User) DeleteNodeUser( ctx context.Context, request gen.DeleteNodeUserRequestObject, ) (gen.DeleteNodeUserResponseObject, error)
DeleteNodeUser deletes a user on a target node.
func (*User) DeleteNodeUserSSHKey ¶
func (u *User) DeleteNodeUserSSHKey( ctx context.Context, request gen.DeleteNodeUserSSHKeyRequestObject, ) (gen.DeleteNodeUserSSHKeyResponseObject, error)
DeleteNodeUserSSHKey removes an SSH authorized key by fingerprint for a user on a target node.
func (*User) GetNodeGroup ¶
func (u *User) GetNodeGroup( ctx context.Context, request gen.GetNodeGroupRequestObject, ) (gen.GetNodeGroupResponseObject, error)
GetNodeGroup lists all groups on a target node.
func (*User) GetNodeGroupByName ¶
func (u *User) GetNodeGroupByName( ctx context.Context, request gen.GetNodeGroupByNameRequestObject, ) (gen.GetNodeGroupByNameResponseObject, error)
GetNodeGroupByName gets a single group by name on a target node.
func (*User) GetNodeUser ¶
func (u *User) GetNodeUser( ctx context.Context, request gen.GetNodeUserRequestObject, ) (gen.GetNodeUserResponseObject, error)
GetNodeUser lists all users on a target node.
func (*User) GetNodeUserByName ¶
func (u *User) GetNodeUserByName( ctx context.Context, request gen.GetNodeUserByNameRequestObject, ) (gen.GetNodeUserByNameResponseObject, error)
GetNodeUserByName gets a single user by name on a target node.
func (*User) GetNodeUserSSHKey ¶
func (u *User) GetNodeUserSSHKey( ctx context.Context, request gen.GetNodeUserSSHKeyRequestObject, ) (gen.GetNodeUserSSHKeyResponseObject, error)
GetNodeUserSSHKey lists SSH authorized keys for a user on a target node.
func (*User) PostNodeGroup ¶
func (u *User) PostNodeGroup( ctx context.Context, request gen.PostNodeGroupRequestObject, ) (gen.PostNodeGroupResponseObject, error)
PostNodeGroup creates a group on a target node.
func (*User) PostNodeUser ¶
func (u *User) PostNodeUser( ctx context.Context, request gen.PostNodeUserRequestObject, ) (gen.PostNodeUserResponseObject, error)
PostNodeUser creates a user on a target node.
func (*User) PostNodeUserPassword ¶
func (u *User) PostNodeUserPassword( ctx context.Context, request gen.PostNodeUserPasswordRequestObject, ) (gen.PostNodeUserPasswordResponseObject, error)
PostNodeUserPassword changes a user's password on a target node.
func (*User) PostNodeUserSSHKey ¶
func (u *User) PostNodeUserSSHKey( ctx context.Context, request gen.PostNodeUserSSHKeyRequestObject, ) (gen.PostNodeUserSSHKeyResponseObject, error)
PostNodeUserSSHKey adds an SSH authorized key for a user on a target node.
func (*User) PutNodeGroup ¶
func (u *User) PutNodeGroup( ctx context.Context, request gen.PutNodeGroupRequestObject, ) (gen.PutNodeGroupResponseObject, error)
PutNodeGroup updates a group on a target node.
func (*User) PutNodeUser ¶
func (u *User) PutNodeUser( ctx context.Context, request gen.PutNodeUserRequestObject, ) (gen.PutNodeUserResponseObject, error)
PutNodeUser updates a user on a target node.