Documentation ¶
Index ¶
- Variables
- func BuildBreakGlassCredential() *v1.BreakGlassCredential
- func BuildExternalAuth() *v1.ExternalAuth
- func FormatBreakGlassCredentialList(credentials []*v1.BreakGlassCredential) string
- func FormatClusterList(clusters []*v1.Cluster) string
- func FormatExternalAuthList(externalAuths []*v1.ExternalAuth) string
- func FormatHtpasswdUserList(htpasswdUsers []*v1.HTPasswdUser) string
- func FormatIDPList(idps []*v1.IdentityProvider) string
- func FormatIngressList(ingresses []*v1.Ingress) string
- func FormatNodePoolUpgradePolicyList(upgrades []*v1.NodePoolUpgradePolicy) string
- func FormatResource(resource interface{}) string
- func FormatVersionList(versions []*v1.Version) string
- func MockAutoscaler(modifyFn func(a *v1.ClusterAutoscalerBuilder)) *v1.ClusterAutoscaler
- func MockCluster(modifyFn func(c *v1.ClusterBuilder)) *v1.Cluster
- func RunWithOutputCapture(runWithRuntime func(*rosa.Runtime, *cobra.Command) error, ...) (string, string, error)
- func RunWithOutputCaptureAndArgv(runWithRuntime func(*rosa.Runtime, *cobra.Command, []string) error, ...) (string, string, error)
- type TestingRuntime
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MockClusterID = "24vf9iitg3p6tlml88iml6j6mu095mh8" MockClusterHREF = "/api/clusters_mgmt/v1/clusters/24vf9iitg3p6tlml88iml6j6mu095mh8" MockClusterName = "cluster" )
Functions ¶
func BuildBreakGlassCredential ¶ added in v1.2.38
func BuildBreakGlassCredential() *v1.BreakGlassCredential
func BuildExternalAuth ¶ added in v1.2.37
func BuildExternalAuth() *v1.ExternalAuth
func FormatBreakGlassCredentialList ¶ added in v1.2.38
func FormatBreakGlassCredentialList(credentials []*v1.BreakGlassCredential) string
func FormatClusterList ¶ added in v1.2.26
func FormatExternalAuthList ¶ added in v1.2.37
func FormatExternalAuthList(externalAuths []*v1.ExternalAuth) string
func FormatHtpasswdUserList ¶ added in v1.2.37
func FormatHtpasswdUserList(htpasswdUsers []*v1.HTPasswdUser) string
func FormatIDPList ¶ added in v1.2.37
func FormatIDPList(idps []*v1.IdentityProvider) string
func FormatIngressList ¶ added in v1.2.27
func FormatNodePoolUpgradePolicyList ¶ added in v1.2.27
func FormatNodePoolUpgradePolicyList(upgrades []*v1.NodePoolUpgradePolicy) string
func FormatResource ¶ added in v1.2.29
func FormatResource(resource interface{}) string
FormatResource wraps the SDK marshalling and returns a string starting from an object
func FormatVersionList ¶ added in v1.2.35
func MockAutoscaler ¶ added in v1.2.38
func MockAutoscaler(modifyFn func(a *v1.ClusterAutoscalerBuilder)) *v1.ClusterAutoscaler
func MockCluster ¶ added in v1.2.38
func MockCluster(modifyFn func(c *v1.ClusterBuilder)) *v1.Cluster
func RunWithOutputCapture ¶
Types ¶
type TestingRuntime ¶ added in v1.2.26
type TestingRuntime struct { SsoServer *ghttp.Server ApiServer *ghttp.Server RosaRuntime *rosa.Runtime }
TestingRuntime is a wrapper for the structure used for testing
func NewTestRuntime ¶ added in v1.2.38
func NewTestRuntime() *TestingRuntime
func (*TestingRuntime) Close ¶ added in v1.2.38
func (t *TestingRuntime) Close()
func (*TestingRuntime) InitRuntime ¶ added in v1.2.26
func (t *TestingRuntime) InitRuntime()
func (*TestingRuntime) SetCluster ¶ added in v1.2.38
func (t *TestingRuntime) SetCluster(clusterKey string, cluster *v1.Cluster)
Click to show internal directories.
Click to hide internal directories.