image

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 15 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 ImageClient
}

func NewImageClient

func NewImageClient() (Client, error)

func (*Client) BuildImage

func (c *Client) BuildImage(input PushImageInput, containerRepository *api2.ContainerRepository) (*types.ImageBuildResponse, error)

func (*Client) PushImage

func (c *Client) PushImage(input PushImageInput, containerRepository *api2.ContainerRepository) (io.ReadCloser, error)

type ErrorDetail

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

type ErrorLine

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

type ImageClient

type ImageClient 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)
}

type PushImageInput

type PushImageInput struct {
	ImageName          string
	Location           string
	OrganizationId     string
	Tag                string
	ArtifactId         string
	Dockerfile         string
	DockerBuildContext string
	TargetPlatform     string
}

Jump to

Keyboard shortcuts

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