formatter

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter interface {
	Output(buffer bytes.Buffer) error
}

Formatter defines the behavior for a Formatter

func NewFormatter

func NewFormatter(t Type, fileName string, logger *log.Logger) Formatter

NewFormatter returns a new instance of formatter

type Images

type Images struct {
	Names []string `json,yaml:"names,omitempty"`
}

Images struct for YAML and JSON output

type Registries

type Registries map[string]Registry

Registries defines a map of Registries

type Registry

type Registry struct {
	Images      map[string][]string    `yaml:"images"`
	Credentials types.DockerAuthConfig `yaml:"credentials,omitempty"`
	TLSVerify   bool                   `yaml:"tls-verify,omitempty"`
	CertDir     string                 `yaml:"cert-dir,omitempty"`
}

Registry definition of a registry to be used by Skopeo

type Type

type Type int

Type definition of formatter type enum

const (
	StdoutType Type = 1 << iota
	FileType
	JSONType
	YamlType
	SkopeoType
)

Enum for Formatter

Jump to

Keyboard shortcuts

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