Documentation
¶
Index ¶
- Constants
- func AddRegisterCmd(list *cobra.Command, opts *util.GlobalOptions)
- func AddRevokeCmd(list *cobra.Command, opts *util.GlobalOptions)
- func AddUpdateCmd(parentCmd *cobra.Command)
- type RegisterCmd
- type RegisterOpts
- type RevokeAPIKeyCmd
- type RevokeAPIKeyOpts
- type UpdateAPIKeyCmd
- type UpdateAPIKeyOpts
Constants ¶
View Source
const ( API_KEY_ROLE_ADMIN = "Admin" API_KEY_ROLE_DEV = "Dev" API_KEY_ROLE_EXT = "Ext" )
Variables ¶
This section is empty.
Functions ¶
func AddRegisterCmd ¶
func AddRegisterCmd(list *cobra.Command, opts *util.GlobalOptions)
func AddRevokeCmd ¶
func AddRevokeCmd(list *cobra.Command, opts *util.GlobalOptions)
func AddUpdateCmd ¶
Types ¶
type RegisterCmd ¶
type RegisterCmd struct {
Opts RegisterOpts
// contains filtered or unexported fields
}
type RegisterOpts ¶
type RevokeAPIKeyCmd ¶
type RevokeAPIKeyCmd struct {
Opts RevokeAPIKeyOpts
// contains filtered or unexported fields
}
type RevokeAPIKeyOpts ¶
type RevokeAPIKeyOpts struct {
*util.GlobalOptions
ID string
}
type UpdateAPIKeyCmd ¶
type UpdateAPIKeyCmd struct {
Opts UpdateAPIKeyOpts
}
func (*UpdateAPIKeyCmd) UpdateAPIKey ¶
func (c *UpdateAPIKeyCmd) UpdateAPIKey(p portal.Portal) error
type UpdateAPIKeyOpts ¶
type UpdateAPIKeyOpts struct {
*util.GlobalOptions
APIKeyID string
ValidFor string
}
Click to show internal directories.
Click to hide internal directories.