Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIToken ¶
type APIToken struct { ID *string `json:"id,omitempty"` // The ID of the api token Name string `json:"name"` // The name of the token. Enabled *bool `json:"enabled,omitempty"` // The token is enabled (true) or disabled (false), default disabled (false). PersonalAccessToken *bool `json:"personalAccessToken,omitempty"` // The token is a personal access token (true) or an API token (false). ExpirationDate *string `json:"expirationDate,omitempty"` // The expiration date of the token. Owner *string `json:"owner,omitempty"` // The owner of the token CreationDate *string `json:"creationDate,omitempty"` // Token creation date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z') ModifiedDate *string `json:"modifiedDate,omitempty"` // Token last modified date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z'). LastUsedDate *string `json:"lastUsedDate,omitempty"` // Token last used date in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSS'Z') LastUsedIpAddress *string `json:"lastUsedIpAddress,omitempty"` // Token last used IP address. Scopes []string `json:"scopes"` // A list of the scopes to be assigned to the token. Token *string `json:"token,omitempty"` // The secret of the token. }
func (*APIToken) MarshalHCL ¶
func (me *APIToken) MarshalHCL(properties hcl.Properties) error
Click to show internal directories.
Click to hide internal directories.