device

package
v0.0.0-...-8e30cb6 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeviceCmd

func NewDeviceCmd(f *factory.Factory) *cobra.Command

func NewDeviceListCmd

func NewDeviceListCmd(opts *DeviceOptions) *cobra.Command

func NewDeviceRevokeCmd

func NewDeviceRevokeCmd(parentOpts *DeviceOptions) *cobra.Command

func PrintRevokedDevices

func PrintRevokedDevices(response *http.Response, out io.Writer, printJSON bool) error

Types

type DeviceOptions

type DeviceOptions struct {
	Config *configuration.Config
	Out    io.Writer
	Device func(c *configuration.Config) (*device.Device, error)
	Debug  bool
	// contains filtered or unexported fields
}

type RevokeOptions

type RevokeOptions struct {
	DeviceOptions              *DeviceOptions
	SiteID                     string
	RevocationReason           string
	DelayMinutes               int32
	TokensPerSecond            float32
	SpecificDistinguishedNames []string
	ByTokenType                string
	TokenType                  string
}

type TokenType

type TokenType int
const (
	Administration TokenType = iota
	AdminClaims
	Entitlement
	Claims
	Unknown
)

func (TokenType) String

func (t TokenType) String() string

Jump to

Keyboard shortcuts

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