Ian Howell 9f4f1a7849 Move from Godeps to go modules
This commit removes the configuration files for Godeps as well as the
vendored dependencies, replacing them with go modules, Go's built-in
dependency management system. This dramatically slims down the size of
the repo (from 25M to 324K, discounting the .git directory) and greatly
speeds up cloning times. This will also provide mechanisms for managing
versions of any auxiliary tools (e.g. linters), creating a reproducible
environment for developers and CI/CD efforts.

This also modifies the Makefile to take into account that the repo no
longer needs to be cloned into the GOPATH.

Change-Id: I2213792cc3ce81831d5b835f2252ca6f137e0086
2019-09-30 14:20:47 -05:00

33 lines
596 B
Go

package mocks
import (
cli "opendev.org/airship/kubernetes-entrypoint/client"
)
type MockEntrypoint struct {
client cli.ClientInterface
namespace string
}
func (m MockEntrypoint) Resolve() {
}
func (m MockEntrypoint) Client() (client cli.ClientInterface) {
return m.client
}
func (m MockEntrypoint) GetNamespace() (namespace string) {
return m.namespace
}
func NewEntrypointInNamespace(namespace string) MockEntrypoint {
return MockEntrypoint{
client: NewClient(),
namespace: namespace,
}
}
func NewEntrypoint() MockEntrypoint {
return NewEntrypointInNamespace("test")
}