apikey

package
v1.298.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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