docker

package
v0.0.0-...-e6735e4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ApiVersion = "v2"

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Token string `json:"token"`
}

type Docker

type Docker struct {
	Registry     string
	ApiUrl       string `yaml:"apiUrl"`
	Username     string
	Password     string
	RegistryAuth string
}

func (*Docker) Login

func (docker *Docker) Login() error

type Image

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

type NameValue

type NameValue struct {
	Name  string `yaml:"name"`
	Value string `yaml:"value"`
}

type NamedSync

type NamedSync struct {
	ApiVersion string `yaml:"apiVersion"`
	Sync       Sync   `yaml:"sync"`
}

type Replace

type Replace struct {
	Old string `yaml:"old"`
	New string `yaml:"new"`
}

type Sync

type Sync struct {
	From    Docker      `yaml:"from"`
	To      Docker      `yaml:"to"`
	Names   []string    `yaml:"names"`
	Rules   []NameValue `yaml:"rules"`
	Replace []Replace   `yaml:"replace"`
}

func (*Sync) Do

func (s *Sync) Do() error

Jump to

Keyboard shortcuts

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