cmd

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Types

type ArmoryCloudPrincipalMetadata added in v0.1.5

type ArmoryCloudPrincipalMetadata struct {
	Name            string `json:"name"`
	Type            string `json:"type"`
	OrgName         string `json:"orgName"`
	TokenExpiration time.Time
}

type AuthErrorResponse added in v0.1.5

type AuthErrorResponse struct {
	Error       string `json:"error"`
	Description string `json:"error_description"`
}

type AuthSuccessfulResponse added in v0.1.5

type AuthSuccessfulResponse struct {
	// AccessToken Encoded JWT / Bearer Token
	AccessToken string `json:"access_token"`
	// SecondsUtilTokenExpires the number of seconds until the JWT expires, from when it was created by the Auth Server.
	// The JWT has the exact expiration date time
	SecondsUtilTokenExpires int `json:"expires_in"`
}

type DeviceTokenData added in v0.1.5

type DeviceTokenData struct {
	DeviceCode              string `json:"device_code"`
	UserCode                string `json:"user_code"`
	VerificationUri         string `json:"verification_uri"`
	ExpiresIn               int    `json:"expires_in"`
	Interval                int    `json:"interval"`
	VerificationUriComplete string `json:"verification_uri_complete"`
}

type Jwt added in v0.1.5

type Jwt struct {
	PrincipalMetadata *ArmoryCloudPrincipalMetadata `json:"https://cloud.armory.io/principal"`
	ExpiresAt         int64                         `json:"exp"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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