Documentation
¶
Index ¶
- func CreateAPIToken(ac *client.AlpaconClient, tokenRequest APITokenRequest) (string, error)
- func DeleteAPIToken(ac *client.AlpaconClient, tokenID string) error
- func GetAPITokenIDByName(ac *client.AlpaconClient, tokenName string) (string, error)
- func LoginAndSaveCredentials(loginReq *LoginRequest, token string, insecure bool) error
- func Logout(ac *client.AlpaconClient) error
- type APITokenAttributes
- type APITokenRequest
- type APITokenResponse
- type LoginRequest
- type LoginResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAPIToken ¶
func CreateAPIToken(ac *client.AlpaconClient, tokenRequest APITokenRequest) (string, error)
func DeleteAPIToken ¶
func DeleteAPIToken(ac *client.AlpaconClient, tokenID string) error
func GetAPITokenIDByName ¶
func GetAPITokenIDByName(ac *client.AlpaconClient, tokenName string) (string, error)
func LoginAndSaveCredentials ¶
func LoginAndSaveCredentials(loginReq *LoginRequest, token string, insecure bool) error
func Logout ¶ added in v0.4.4
func Logout(ac *client.AlpaconClient) error
Types ¶
type APITokenAttributes ¶
type APITokenAttributes struct {
ID string `json:"id"`
Name string `json:"name"`
Enabled bool `json:"enabled"`
UpdatedAt string `json:"updated_at"`
ExpiresAt string `json:"expires_at"`
}
func GetAPITokenList ¶
func GetAPITokenList(ac *client.AlpaconClient) ([]APITokenAttributes, error)
type APITokenRequest ¶
type APITokenResponse ¶
type LoginRequest ¶
type LoginResponse ¶
Click to show internal directories.
Click to hide internal directories.