containerupdate

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: Apache-2.0 Imports: 20 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 store.ContainerInfo,
		archiveToCopy io.Reader, filesToDelete []string, cmds []model.Cmd, hotReload bool) error
}

type DockerContainerUpdater

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

func NewDockerContainerUpdater

func NewDockerContainerUpdater(dCli docker.Client) *DockerContainerUpdater

func (*DockerContainerUpdater) UpdateContainer

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

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 store.ContainerInfo,
	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 store.ContainerInfo,
	archiveToCopy io.Reader, filesToDelete []string, cmds []model.Cmd, hotReload bool) error

type SyncletManager

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

func NewSyncletManager

func NewSyncletManager(kCli k8s.Client) SyncletManager

func NewSyncletManagerForTests

func NewSyncletManagerForTests(kCli k8s.Client, sCli synclet.SyncletClient, fake *synclet.TestSyncletClient) SyncletManager

func (SyncletManager) ClientForPod

func (sm SyncletManager) ClientForPod(ctx context.Context, podID k8s.PodID, ns k8s.Namespace) (synclet.SyncletClient, error)

func (SyncletManager) OnChange

func (sm SyncletManager) OnChange(ctx context.Context, store store.RStore)

type SyncletUpdater

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

func NewSyncletUpdater

func NewSyncletUpdater(sm SyncletManager) *SyncletUpdater

func (*SyncletUpdater) UpdateContainer

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

type UpdateContainerCall

type UpdateContainerCall struct {
	ContainerInfo store.ContainerInfo
	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