whoami

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Customer

type Customer struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

Customer is part of the Fastly API repsonse for the whoami command.

type RootCommand

type RootCommand struct {
	cmd.Base
}

RootCommand is the parent command for all subcommands in this package. It should be installed under the primary root command.

func NewRootCommand

func NewRootCommand(parent cmd.Registerer, globals *config.Data) *RootCommand

NewRootCommand returns a new command registered in the parent.

func (*RootCommand) Exec

func (c *RootCommand) Exec(in io.Reader, out io.Writer) error

Exec implements the command interface.

type Token

type Token struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	CreatedAt string `json:"created_at"`
	ExpiresAt string `json:"expires_at"`
	Scope     string `json:"scope"`
}

Token is part of the Fastly API repsonse for the whoami command.

type User

type User struct {
	ID    string `json:"id"`
	Name  string `json:"name"`
	Login string `json:"login"`
}

User is part of the Fastly API repsonse for the whoami command.

type VerifyResponse

type VerifyResponse struct {
	Customer Customer          `json:"customer"`
	User     User              `json:"user"`
	Services map[string]string `json:"services"`
	Token    Token             `json:"token"`
}

VerifyResponse models the Fastly API response for the whoami command.

Jump to

Keyboard shortcuts

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