Documentation
¶
Index ¶
- func AssertContains(t *testing.T, slice []string, expected string)
- func AssertEq(t *testing.T, actual, expected interface{})
- func AssertError(t *testing.T, actual error, expected string)
- func AssertMatch(t *testing.T, actual string, expected *regexp.Regexp)
- func AssertNil(t *testing.T, actual interface{})
- func AssertUidGid(t *testing.T, path string, uid, gid int)
- func ComputeSHA256ForFile(t *testing.T, path string) string
- func ComputeSHA256ForPath(t *testing.T, path string, uid int, guid int) string
- func CopySingleFileFromContainer(dockerCli *dockercli.Client, ctrID, path string) (string, error)
- func CopySingleFileFromImage(dockerCli *dockercli.Client, repoName, path string) (string, error)
- func CreateImageOnLocal(t *testing.T, dockerCli *dockercli.Client, repoName, dockerFile string, ...)
- func CreateImageOnRemote(t *testing.T, dockerCli *dockercli.Client, repoName, dockerFile string, ...) string
- func CreateSingleFileTar(path, txt string) (io.Reader, error)
- func DockerCli(t *testing.T) *dockercli.Client
- func DockerRmi(dockerCli *dockercli.Client, repoNames ...string) error
- func Eventually(t *testing.T, test func() bool, every time.Duration, timeout time.Duration)
- func HttpGetE(url string) (string, error)
- func ImageID(t *testing.T, repoName string) string
- func PullImage(dockerCli *dockercli.Client, ref string) error
- func RandString(n int) string
- func RecursiveCopy(t *testing.T, src, dst string)
- func Run(t *testing.T, cmd *exec.Cmd) string
- func RunE(cmd *exec.Cmd) (string, error)
- type DockerRegistry
- type FakeImage
- func (f *FakeImage) AddLayer(path string) error
- func (f *FakeImage) AppLayerPath() string
- func (f *FakeImage) Cmd() ([]string, error)
- func (f *FakeImage) ConfigLayerPath() string
- func (f *FakeImage) Delete() error
- func (f *FakeImage) Digest() (string, error)
- func (f *FakeImage) Entrypoint() ([]string, error)
- func (f *FakeImage) Env(k string) (string, error)
- func (f *FakeImage) FindLayerWithPath(path string) string
- func (f *FakeImage) Found() (bool, error)
- func (f *FakeImage) GetLayer(sha string) (io.ReadCloser, error)
- func (f *FakeImage) IsSaved() bool
- func (f *FakeImage) Label(key string) (string, error)
- func (f *FakeImage) Name() string
- func (f *FakeImage) NumberOfAddedLayers() int
- func (FakeImage) Rebase(string, image.Image) error
- func (f *FakeImage) Rename(name string)
- func (f *FakeImage) ReuseLayer(sha string) error
- func (f *FakeImage) ReusedLayers() []string
- func (f *FakeImage) Save() (string, error)
- func (f *FakeImage) SetCmd(v ...string) error
- func (f *FakeImage) SetEntrypoint(v ...string) error
- func (f *FakeImage) SetEnv(k string, v string) error
- func (f *FakeImage) SetLabel(k string, v string) error
- func (f *FakeImage) TopLayer() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeSHA256ForPath ¶
func CopySingleFileFromImage ¶
func CreateImageOnLocal ¶
func CreateImageOnRemote ¶
func Eventually ¶
func RandString ¶
func RecursiveCopy ¶
Types ¶
type DockerRegistry ¶
func NewDockerRegistry ¶
func NewDockerRegistry() *DockerRegistry
func (*DockerRegistry) Start ¶
func (registry *DockerRegistry) Start(t *testing.T)
func (*DockerRegistry) Stop ¶
func (registry *DockerRegistry) Stop(t *testing.T)
type FakeImage ¶
type FakeImage struct {
// contains filtered or unexported fields
}
func (*FakeImage) AppLayerPath ¶
func (*FakeImage) ConfigLayerPath ¶
func (*FakeImage) Entrypoint ¶
func (*FakeImage) FindLayerWithPath ¶
func (*FakeImage) NumberOfAddedLayers ¶
func (*FakeImage) ReuseLayer ¶
func (*FakeImage) ReusedLayers ¶
func (*FakeImage) SetEntrypoint ¶
Click to show internal directories.
Click to hide internal directories.