service

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractErrorDetail

func ExtractErrorDetail(in io.Reader) error

Types

type Context

type Context struct {
	JobType          string             `yaml:"job_type"`
	ProgressFile     string             `yaml:"progress_file"`
	Images           []*ImagesByService `yaml:"images"`
	SourceRegistries []*DockerRegistry  `yaml:"source_registries"`
	TargetRegistries []*DockerRegistry  `yaml:"target_registries"`
}

Context parameters for job to run with

type DockerRegistry

type DockerRegistry struct {
	RegistryID string `yaml:"registry_id"`
	Host       string `yaml:"host"`
	UserName   string `yaml:"username"`
	Password   string `yaml:"password"`
	Namespace  string `yaml:"namespace"`
}

DockerRegistry registry host/user/password

type ImageData

type ImageData struct {
	ImageUrl   string `yaml:"image_url"   json:"image_url"`
	ImageName  string `yaml:"image_name"  json:"image_name"`
	ImageTag   string `yaml:"image_tag"   json:"image_tag"`
	CustomTag  string `yaml:"custom_tag"  json:"custom_tag"`
	RegistryID string `yaml:"registry_id" json:"registry_id"`
}

type ImagesByService

type ImagesByService struct {
	ServiceName string       `yaml:"service_name"`
	Images      []*ImageData `yaml:"images"`
}

ImagesByService defines all images in a service

type PackageResult

type PackageResult struct {
	ServiceName string       `json:"service_name"`
	Result      string       `json:"result"`
	ErrorMsg    string       `json:"error_msg"`
	ImageData   []*ImageData `json:"image_data"`
}

type Packager

type Packager struct {
	Ctx *Context
}

func NewPackager

func NewPackager() (*Packager, error)

func (*Packager) Exec

func (p *Packager) Exec() error

Jump to

Keyboard shortcuts

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