containerupdate

package
v0.22.15 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerUpdater

type ContainerUpdater interface {
	UpdateContainer(ctx context.Context, cInfo liveupdates.Container,
		archiveToCopy io.Reader, filesToDelete []string, cmds []model.Cmd, hotReload bool) error
}

type DockerUpdater added in v0.17.0

type DockerUpdater struct {
	// contains filtered or unexported fields
}

func NewDockerUpdater added in v0.17.0

func NewDockerUpdater(dCli docker.Client) *DockerUpdater

func (*DockerUpdater) UpdateContainer added in v0.17.0

func (cu *DockerUpdater) UpdateContainer(ctx context.Context, cInfo liveupdates.Container,
	archiveToCopy io.Reader, filesToDelete []string, cmds []model.Cmd, hotReload bool) error

func (*DockerUpdater) WillBuildToKubeContext added in v0.20.7

func (cu *DockerUpdater) WillBuildToKubeContext(kctx k8s.KubeContext) bool

type ExecUpdater

type ExecUpdater struct {
	// contains filtered or unexported fields
}

func NewExecUpdater

func NewExecUpdater(kCli k8s.Client) *ExecUpdater

func (*ExecUpdater) UpdateContainer

func (cu *ExecUpdater) UpdateContainer(ctx context.Context, cInfo liveupdates.Container,
	archiveToCopy io.Reader, filesToDelete []string, cmds []model.Cmd, hotReload bool) error

type FakeContainerUpdater

type FakeContainerUpdater struct {
	UpdateErrs []error

	Calls []UpdateContainerCall
}

func (*FakeContainerUpdater) SetUpdateErr added in v0.10.0

func (cu *FakeContainerUpdater) SetUpdateErr(err error)

func (*FakeContainerUpdater) UpdateContainer

func (cu *FakeContainerUpdater) UpdateContainer(ctx context.Context, cInfo liveupdates.Container,
	archiveToCopy io.Reader, filesToDelete []string, cmds []model.Cmd, hotReload bool) error

type UpdateContainerCall

type UpdateContainerCall struct {
	ContainerInfo liveupdates.Container
	Archive       io.Reader
	ToDelete      []string
	Cmds          []model.Cmd
	HotReload     bool
}

Jump to

Keyboard shortcuts

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