cmd

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnauthorized = errors.New("unauthorized: authentication required")

Functions

func Config

func Config(cmd *cobra.Command, args []string) error

func ExecuteCLI

func ExecuteCLI()

ExecuteCLI adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetKeyRequest added in v0.2.0

func GetKeyRequest(pcrSlice []string, token string) (sdk.KeyRequest, error)

func Test

func Test(cmd *cobra.Command, args []string) error

func UpdateConfigFileJSON

func UpdateConfigFileJSON(jsonFile string, key string, value string) error

Types

type AttestationResponse

type AttestationResponse struct {
	AttestationDoc string `json:"attestation_doc"`
}

type DeployResponse

type DeployResponse struct {
	ID string `json:"id"`
}

type DeviceCodeResponse

type DeviceCodeResponse struct {
	VerificationURIComplete string `json:"verification_uri_complete"`
	UserCode                string `json:"user_code"`
	DeviceCode              string `json:"device_code"`
	ExpiresIn               int    `json:"expires_in"`
	Interval                int    `json:"interval"`
}

type ErrServerForList added in v0.3.0

type ErrServerForList struct {
	// contains filtered or unexported fields
}

func (ErrServerForList) Error added in v0.3.0

func (e ErrServerForList) Error() string

type ErrorMsg

type ErrorMsg struct {
	ErrorMsg string `json:"error"`
}

func (ErrorMsg) Error

func (e ErrorMsg) Error() string

type ErrorRunResponse

type ErrorRunResponse struct {
	Message string `json:"message"`
}

type Message

type Message struct {
	Type    string `json:"type"`
	Message []byte `json:"message"`
}

type PlainFormatter

type PlainFormatter struct{}

func (*PlainFormatter) Format

func (f *PlainFormatter) Format(entry *log.Entry) ([]byte, error)

type Release added in v0.4.5

type Release struct {
	TagName string `json:"tag_name"`
}

type RunResponse

type RunResponse struct {
	Type    string `json:"type"`
	Message []byte `json:"message"`
}

type TokenResponse

type TokenResponse struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
	IDToken      string `json:"id_token"`
	TokenType    string `json:"token_type"`
	ExpiresIn    int    `json:"expires_in"`
}

type UserError

type UserError struct {
	Msg string
	Err error
}

func (UserError) Error

func (e UserError) Error() string

Jump to

Keyboard shortcuts

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