apikey

package
v1.262.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

func AddUpdateCmd(parentCmd *cobra.Command)

Types

type RegisterCmd

type RegisterCmd struct {
	Opts RegisterOpts
	// contains filtered or unexported fields
}

func (*RegisterCmd) Register

func (c *RegisterCmd) Register(p portal.Portal) (*portal.ApiKey, error)

func (*RegisterCmd) RunE

func (c *RegisterCmd) RunE(_ *cobra.Command, args []string) error

type RegisterOpts

type RegisterOpts struct {
	*util.GlobalOptions
	Owner        string
	Organization string
	Role         string
	ValidFor     string
}

type RevokeAPIKeyCmd

type RevokeAPIKeyCmd struct {
	Opts RevokeAPIKeyOpts
	// contains filtered or unexported fields
}

func (*RevokeAPIKeyCmd) Revoke

func (c *RevokeAPIKeyCmd) Revoke(p portal.Portal) error

func (*RevokeAPIKeyCmd) RunE

func (c *RevokeAPIKeyCmd) RunE(_ *cobra.Command, args []string) error

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL