enrollmenttoken

package
v1.0.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: Apache-2.0 Imports: 10 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
}

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
}

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
}

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