kubernetes-entrypoint/mocks/entrypoint.go
2017-02-02 11:01:43 +01:00

33 lines
599 B
Go

package mocks
import (
cli "github.com/stackanetes/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")
}