Documentation
¶
Index ¶
- func AddAccessCmd(ch *cmdutil.Helper) *cobra.Command
- func CreateCmd(ch *cmdutil.Helper) *cobra.Command
- func DeleteAccessCmd(ch *cmdutil.Helper) *cobra.Command
- func DeleteCmd(ch *cmdutil.Helper) *cobra.Command
- func ListCmd(ch *cmdutil.Helper) *cobra.Command
- func ShowAccessCmd(ch *cmdutil.Helper) *cobra.Command
- func TokenCmd(ch *cmdutil.Helper) *cobra.Command
- type ServiceToken
- type ServiceTokenAccess
- type ServiceTokenGrant
- type ServiceTokenWithSecret
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ServiceToken ¶ added in v0.14.0
type ServiceToken struct {
ID string `header:"id" json:"id"`
Name string `header:"name" json:"name"`
LastUsedAt int64 `header:"last_used_at,timestamp(ms|utc|human)" json:"last_used_at"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
// contains filtered or unexported fields
}
ServiceToken returns a table and json serializable service token for listing.
func (*ServiceToken) MarshalJSON ¶ added in v0.14.0
func (s *ServiceToken) MarshalJSON() ([]byte, error)
type ServiceTokenAccess ¶ added in v0.14.0
type ServiceTokenAccess struct {
ResourceName string `header:"resource_name" json:"resource_name"`
ResourceType string `header:"resource_type" json:"resource_type"`
Accesses []string `header:"accesses" json:"accesses"`
}
ServiceTokenAccess returns a table and json serializable service token
type ServiceTokenGrant ¶ added in v0.124.0
type ServiceTokenGrant struct {
ResourceName string `header:"resource_name" json:"resource_name"`
ResourceType string `header:"resource_type" json:"resource_type"`
Accesses []string `header:"accesses" json:"accesses"`
}
ServiceTokenGrant returns a table and json serializable service token grant
type ServiceTokenWithSecret ¶ added in v0.262.0
type ServiceTokenWithSecret struct {
ID string `header:"id" json:"id"`
Name string `header:"name" json:"name"`
Token string `header:"token" json:"token"`
CreatedAt int64 `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
// contains filtered or unexported fields
}
ServiceTokenWithSecret is used for the create response where the token is returned.
func (*ServiceTokenWithSecret) MarshalJSON ¶ added in v0.262.0
func (s *ServiceTokenWithSecret) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.