image

package
v0.0.0-...-2263012 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const AWS = "AWS"
View Source
const AZURE = "Azure"
View Source
const GCP = "GCP"

Variables

This section is empty.

Functions

func Push

func Push(client graphql.Client, input PushImageInput, imageClient Client) error

Types

type Client

type Client struct {
	Cli DockerClient
}

func NewImageClient

func NewImageClient() (Client, error)

func (*Client) BuildImage

func (c *Client) BuildImage(input PushImageInput, containerRepository *api.ContainerRepository) error

func (*Client) PushImage

func (c *Client) PushImage(input PushImageInput, containerRepository *api.ContainerRepository) error

type DockerClient

type DockerClient interface {
	ImageBuild(ctx context.Context, buildContext io.Reader, options types.ImageBuildOptions) (types.ImageBuildResponse, error)
	ImagePush(ctx context.Context, image string, options types.ImagePushOptions) (io.ReadCloser, error)
	ImageTag(ctx context.Context, source, target string) error
}

type ErrorDetail

type ErrorDetail struct {
	Message string `json:"message"`
}

type ErrorLine

type ErrorLine struct {
	Error       string      `json:"error"`
	ErrorDetail ErrorDetail `json:"errorDetail"`
}

type PushImageInput

type PushImageInput struct {
	ImageName          string
	Location           string
	OrganizationID     string
	Tags               []string
	ArtifactID         string
	Dockerfile         string
	DockerBuildContext string
	TargetPlatform     string
	CacheFrom          string
	SkipBuild          bool
}

Jump to

Keyboard shortcuts

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