Documentation
¶
Index ¶
- Constants
- func AllPodsReady(ns string) func() bool
- func BuildOperator() (registry string)
- func BuildTestService(namespace string) (registry string)
- func BuildTestServicePreparedImage(callerName, namespace string) (registry string)
- func CleanupTestScenario(namespace string)
- func ClientVersion() int
- func CreateFile(filePath, content string)
- func CreateNewApp(name string)
- func DeleteFile(filePath string)
- func DeleteProjectCmd(name string) string
- func DeployHelloWorldCmd(name, ns string) string
- func DeployTestScenario(scenario, namespace string)
- func DumpTelepresenceLog(dir string)
- func GetAllPods(ns string) []string
- func GetClusterHost() string
- func GetDockerRegistryInternal() string
- func GetEvents(ns string)
- func GetGatewayHost(namespace string) string
- func GetIstioIngressHostname() string
- func GetIstioNamespace() string
- func GetProjectLabels(namespace string) string
- func InstallLocalOperator(namespace string)
- func LoadIstio()
- func LoginAsTestPowerUser()
- func LogsOf(ns, pod string) string
- func ModifyServerCodeIn(tmpDir string)
- func NewProjectCmd(name string) string
- func OriginalServerCodeIn(tmpDir string)
- func PushOperatorImage(namespace string)
- func StateOf(ns, pod string)
- func UpdateSecurityConstraintsFor(namespace string)
Constants ¶
const PublisherRuby = `` /* 441-byte string literal not displayed */
PublisherRuby contains fixed response to be changed by tests
Variables ¶
This section is empty.
Functions ¶
func AllPodsReady ¶ added in v0.0.2
AllPodsReady checks whether all the pods (and their containers) in the given namespace are in Ready state
func BuildOperator ¶
func BuildOperator() (registry string)
BuildOperator builds istio-workspace operator and pushes it to specified registry
func BuildTestService ¶
BuildTestService builds istio-workspace-test service and pushes it to specified registry
func BuildTestServicePreparedImage ¶ added in v0.0.2
BuildTestServicePreparedImage builds istio-workspace-test-prepared service and pushes it to specified registry
func CleanupTestScenario ¶ added in v0.0.2
func CleanupTestScenario(namespace string)
func ClientVersion ¶ added in v0.0.2
func ClientVersion() int
func CreateFile ¶
func CreateFile(filePath, content string)
CreateFile creates file under defined path with a given content
func CreateNewApp ¶
func CreateNewApp(name string)
CreateNewApp creates new project with a given name, deploys simple datawire/hello-world app and exposes route to it service
func DeleteFile ¶ added in v0.0.2
func DeleteFile(filePath string)
DeleteFile deletes file under defined path
func DeleteProjectCmd ¶ added in v0.0.2
func DeployHelloWorldCmd ¶ added in v0.0.2
func DeployTestScenario ¶
func DeployTestScenario(scenario, namespace string)
DeployTestScenario deploys a test scenario into the specified namespace
func DumpTelepresenceLog ¶ added in v0.0.2
func DumpTelepresenceLog(dir string)
DumpTelepresenceLog dumps telepresence log if exists
func GetAllPods ¶ added in v0.0.2
GetAllPods returns names of all pods from a given namespace
func GetClusterHost ¶ added in v0.0.2
func GetClusterHost() string
func GetDockerRegistryInternal ¶ added in v0.0.2
func GetDockerRegistryInternal() string
GetDockerRegistryInternal returns the internal address for the docker registry
func GetEvents ¶ added in v0.0.2
func GetEvents(ns string)
GetEvents returns all events which occurred for a given namespace
func GetGatewayHost ¶ added in v0.0.2
GetGatewayHost returns the host the Gateway in the scenario is bound to (http header Host)
func GetIstioIngressHostname ¶ added in v0.0.2
func GetIstioIngressHostname() string
func GetIstioNamespace ¶ added in v0.0.2
func GetIstioNamespace() string
func GetProjectLabels ¶ added in v0.0.2
GetProjectLabels returns labels for a given namespace as a string
func InstallLocalOperator ¶ added in v0.0.2
func InstallLocalOperator(namespace string)
func LoadIstio ¶
func LoadIstio()
LoadIstio calls make load-istio target and waits until operator sets up the mesh
func LoginAsTestPowerUser ¶ added in v0.0.2
func LoginAsTestPowerUser()
func ModifyServerCodeIn ¶
func ModifyServerCodeIn(tmpDir string)
ModifyServerCodeIn changes the code base of a simple python-based web server and puts it in the defined directory
func NewProjectCmd ¶ added in v0.0.2
func OriginalServerCodeIn ¶
func OriginalServerCodeIn(tmpDir string)
OriginalServerCodeIn puts the original code base of a simple python-based web server in the defined directory
func PushOperatorImage ¶ added in v0.0.2
func PushOperatorImage(namespace string)
PushOperatorImage deploys istio-workspace operator into specified namespace
func UpdateSecurityConstraintsFor ¶
func UpdateSecurityConstraintsFor(namespace string)
UpdateSecurityConstraintsFor applies anyuid and privileged constraints to a given namespace
Types ¶
This section is empty.