Documentation ¶
Index ¶
- type FakeDockerClient
- type FakeGit
- func (f *FakeGit) Add(location string, spec string) error
- func (f *FakeGit) AddLocalConfig(source, key, value string) error
- func (f *FakeGit) AddRemote(source, remote, url string) error
- func (f *FakeGit) Archive(source, ref, format string, w io.Writer) error
- func (g *FakeGit) Checkout(dir string, ref string) error
- func (g *FakeGit) Clone(dir string, url string) error
- func (g *FakeGit) CloneBare(dir string, url string) error
- func (g *FakeGit) CloneMirror(source, target string) error
- func (g *FakeGit) CloneWithOptions(dir string, url string, args ...string) error
- func (f *FakeGit) Commit(location string, message string) error
- func (f *FakeGit) Fetch(source string) error
- func (f *FakeGit) GetInfo(location string) (*git.SourceInfo, []error)
- func (g *FakeGit) GetOriginURL(dir string) (string, bool, error)
- func (g *FakeGit) GetRef(dir string) string
- func (g *FakeGit) GetRootDir(dir string) (string, error)
- func (f *FakeGit) Init(source string, _ bool) error
- func (f *FakeGit) ListRemote(url string, args ...string) (string, string, error)
- func (f *FakeGit) ShowFormat(source, ref, format string) (string, error)
- func (g *FakeGit) SubmoduleUpdate(dir string, init, recurse bool) error
- func (f *FakeGit) TimedListRemote(timeout time.Duration, url string, args ...string) (string, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeDockerClient ¶
type FakeDockerClient struct { // list result Images []docker.APIImages // inspect result Image *docker.Image ListErr error InspectErr error }
func (FakeDockerClient) InspectImage ¶
func (f FakeDockerClient) InspectImage(name string) (*docker.Image, error)
func (FakeDockerClient) ListImages ¶
func (f FakeDockerClient) ListImages(opts docker.ListImagesOptions) ([]docker.APIImages, error)
type FakeGit ¶
type FakeGit struct { RootDir string GitURL string Ref string CloneCalled bool CheckoutCalled bool SubmoduleUpdateCalled bool }
func (*FakeGit) AddLocalConfig ¶
func (*FakeGit) CloneMirror ¶
func (*FakeGit) CloneWithOptions ¶
func (*FakeGit) ListRemote ¶
func (*FakeGit) ShowFormat ¶
func (*FakeGit) SubmoduleUpdate ¶
Click to show internal directories.
Click to hide internal directories.