gcrsync

package
v0.0.0-...-a2825c5 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImageListFile  = "ImageList"
	ReadmeFile     = "README.md"
	GcrRegistryTpl = "gcr.io/%s/%s"
	GcrImages      = "https://gcr.io/v2/%s/tags/list"
	GcrImageTags   = "https://gcr.io/v2/%s/%s/tags/list"
	RegistryTag    = "https://hub.docker.com/v2/repositories/%s/%s/tags/%s/"
)

Variables

View Source
var CntIter int
View Source
var CntTotal int

Functions

This section is empty.

Types

type Gcr

type Gcr struct {
	Proxy          string
	DockerUser     string
	DockerPassword string
	NameSpace      string
	GithubToken    string
	GithubRepo     string
	GithubUser     string
	GithubEmail    string
	CommitMsg      string
	MonitorCount   int
	TestMode       bool
	MonitorMode    bool
	Debug          bool
	QueryLimit     chan int
	ProcessLimit   chan int
	ProcessCount   int
	HttpTimeOut    time.Duration
	// contains filtered or unexported fields
}

func (*Gcr) Clone

func (g *Gcr) Clone()

func (*Gcr) Commit

func (g *Gcr) Commit(images []string)

组装文件:README.md和ImageList,使用markdown格式。

func (*Gcr) Compare

func (g *Gcr) Compare()

func (*Gcr) Init

func (g *Gcr) Init()

func (*Gcr) Monitor

func (g *Gcr) Monitor()

func (*Gcr) Process

func (g *Gcr) Process(imageName string)

func (*Gcr) Sync

func (g *Gcr) Sync()

type Image

type Image struct {
	Name string
	Tags []string
}

Jump to

Keyboard shortcuts

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