docker

package
v0.0.0-...-2c85719 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeDockerAuthHeader

func EncodeDockerAuthHeader(username, password string) (string, error)

Types

type Image

type Image struct {
	Name                   string
	Dockerfile             string
	Args                   map[string]string
	Context                string
	Version                string
	RepositoryUrlWithImage bool
	ProviderOptions        []sdk.ResourceOption
	RepositoryUrl          sdk.StringOutput
	Registry               docker.RegistryArgs
	Platform               *string
}

type ImageOut

type ImageOut struct {
	Image   *docker.Image
	AddOpts []sdk.ResourceOption
}

func BuildAndPushImage

func BuildAndPushImage(ctx *sdk.Context, stack api.Stack, params pApi.ProvisionParams, deployParams api.StackParams, image Image) (*ImageOut, error)

type MsgCallback

type MsgCallback func(message *ResponseMessage, err error) error

MsgCallback callback to be called for each message from Docker daemon

type MsgReader

type MsgReader interface {
	// Next synchronously reads next message from Docker daemon
	Next() (*ResponseMessage, error)

	// Listen allows to process messages streamed from Docker daemon
	Listen(output bool, callback MsgCallback) error
}

MsgReader interface allowing to read streamed output from Docker daemon

type Pull

type Pull struct {
	sdk.ResourceState

	Digest sdk.StringOutput `pulumi:"digest"`
}

func NewDockerPull

func NewDockerPull(ctx *sdk.Context, name string, args *PullArgs, opts ...sdk.ResourceOption) (*Pull, error)

type PullArgs

type PullArgs struct {
	RemoteImage sdk.StringInput `pulumi:"remoteImage"`
	AuthHeader  sdk.StringInput `pulumi:"authHeader"`
	Platform    sdk.StringInput `pulumi:"platform"`
	Log         logger.Logger
}

type ResponseAux

type ResponseAux struct {
	ID     string `json:"ID"`
	Tag    string `json:"Tag"`
	Digest string `json:"Digest"`
	Size   int    `json:"Size"`
}

type ResponseMessage

type ResponseMessage struct {
	Id          string      `json:"id"`
	Status      string      `json:"status"`
	Stream      string      `json:"stream"`
	Aux         ResponseAux `json:"aux"`
	ErrorDetail struct {
		Code    int    `json:"code"`
		Message string `json:"message"`
	}
	ProgressDetail struct {
		Current int `json:"current"`
		Total   int `json:"total"`
	}
	Progress string `json:"progress"`
	Error    string `json:"error"`
	// contains filtered or unexported fields
}

ResponseMessage reflects typical response message from Docker daemon of V1

type ResponseMessageV2

type ResponseMessageV2 struct {
	Id  string `json:"id"`
	Aux string `json:"aux"` // contains base64-encoded PB object
}

ResponseMessageV2 reflects typical response message from Docker daemon of V2

Jump to

Keyboard shortcuts

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