serviceuser

package
v0.46.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) Delete

func (h *Handler) Delete(userUUID string) error

Delete deletes a service user by UUID.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL