cmd

package
v0.0.0-...-a4e0ff0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(version string) error

Execute executes the root command.

Types

type ACRAccessToken

type ACRAccessToken struct {
	Token string `json:"access_token"`
}

ACRAccessToken retrieved from /oauth2/token

type ACRRefreshToken

type ACRRefreshToken struct {
	Token string `json:"refresh_token"`
}

ACRRefreshToken retrieved from /oauth2/exchange

type AzureConfig

type AzureConfig []struct {
	ExpiresIn        int    `json:"expiresIn"`
	Authority        string `json:"_authority"`
	RefreshToken     string `json:"refreshToken"`
	TokenType        string `json:"tokenType"`
	ExpiresOn        string `json:"expiresOn"`
	UserID           string `json:"userId"`
	IsMRRT           bool   `json:"isMRRT"`
	ClientID         string `json:"_clientId"`
	Resource         string `json:"resource"`
	AccessToken      string `json:"accessToken"`
	IdentityProvider string `json:"identityProvider,omitempty"`
	Oid              string `json:"oid,omitempty"`
}

AzureConfig struct used to unmarshal ~/.azure/accessTokens.json

type Image

type Image struct {
	Name string   `json:"name"`
	Tags []string `json:"tags"`
}

Image is a spec of images and their respective tags

type RepoList

type RepoList struct {
	Repositories []string `json:"repositories"`
}

RepoList is a list of images from /v2/_catalog

Jump to

Keyboard shortcuts

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