Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler delegates service-user operations to the SDK.
func NewHandler ¶
func NewHandler(accountClient *httpclient.Client, accountUUID string) *Handler
NewHandler creates a CLI service-user handler.
func (*Handler) Create ¶
func (h *Handler) Create(req ServiceUserCreate) (*ServiceUser, error)
Create creates a service user and returns its identity metadata.
func (*Handler) List ¶
func (h *Handler) List() ([]ServiceUser, error)
List returns all service users.
type ServiceUser ¶
type ServiceUser struct {
Name string `json:"name" table:"NAME"`
Email string `json:"email" table:"EMAIL"`
UID string `json:"uid" table:"UID"`
CreatedAt string `json:"createdAt" table:"CREATED"`
Surname string `json:"surname" table:"SURNAME,wide"`
Description string `json:"description" table:"DESCRIPTION,wide"`
GroupUUID string `json:"groupUuid,omitempty" table:"GROUP-UUID,wide"`
}
ServiceUser is the CLI output model for service-user identity metadata.
type ServiceUserCreate ¶
type ServiceUserCreate = sdksu.ServiceUserCreate
ServiceUserCreate is the request body for creating a service user.