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 wraps the SDK handler with CLI-specific output conversion.
func NewHandler ¶
func NewHandler(accountClient *httpclient.Client, accountUUID string) *Handler
NewHandler creates a CLI platform token handler.
func (*Handler) Create ¶
func (h *Handler) Create(req PlatformTokenCreate) (*PlatformToken, error)
Create creates a new platform token.
func (*Handler) List ¶
func (h *Handler) List() ([]PlatformToken, error)
List returns all platform tokens.
type PlatformToken ¶
type PlatformToken struct {
Name string `json:"name" table:"NAME"`
TokenID string `json:"tokenId" table:"TOKEN-ID"`
Status string `json:"status" table:"STATUS"`
ExpirationDate string `json:"expirationDate" table:"EXPIRES"`
Scope string `json:"scope" table:"SCOPE,wide"`
Token string `json:"token,omitempty" table:"-"` // never shown in table
}
PlatformToken is the CLI output struct with table tags.
type PlatformTokenCreate ¶
type PlatformTokenCreate = sdkpt.PlatformTokenCreate
Re-export SDK create type for use in cmd layer.