enrollmenttokenapi

package
v1.2.30 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

Create creates the token for the specific roles

func Delete

func Delete(params DeleteParams) error

Delete deletes a persistent token

func List

List lists all persistent tokens

Types

type CreateParams

type CreateParams struct {
	*api.API
	Roles    []string
	Duration time.Duration
	Region   string
}

CreateParams is consumed by Create

func (CreateParams) Validate

func (params CreateParams) Validate() error

Validate ensures that there's no errors prior to performing the Create API call.

type DeleteParams

type DeleteParams struct {
	*api.API
	Token  string
	Region string
}

DeleteParams is consumed by Delete

func (DeleteParams) Validate

func (params DeleteParams) Validate() error

Validate ensures that there's no errors prior to performing the Delete API call.

type ListParams

type ListParams struct {
	*api.API
	Region string
}

ListParams is consumed by List

func (ListParams) Validate

func (params ListParams) Validate() error

Validate ensures that there's no errors prior to performing the List API call.

Jump to

Keyboard shortcuts

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