Documentation ¶
Index ¶
- Variables
- func ConvertFilterToString(qs interface{}) (filter string)
- func ConvertToMap(qs interface{}) map[string]interface{}
- func ConvertToStringArray(interfaceList []interface{}) []string
- func ConvertToStringMap(interfaceMap map[string]interface{}) map[string]string
- func CreateRHCSClusterByProfile(profile *Profile, creationArgs *EXE.ClusterCreationArgs, manifests_dir string) (string, error)
- func ElementInArray(target string, str_array []string) bool
- func GateWayURL() string
- func GenerateClusterCreationArgsByProfile(profile *Profile) (clusterArgs *EXE.ClusterCreationArgs, manifestsDir string, err error)
- func GetElements(content map[string]interface{}, element string, num ...int) interface{}
- func GetEnvWithDefault(key string, defaultValue string) string
- func GetYAMLProfileFile(fileName string) (filename string)
- func PrepareAccountRoles()
- func PrepareKMSKey()
- func PrepareProxy()
- func PrepareRoute53()
- func PrepareVPC(region string, privateLink bool, multiZone bool, azIDs []string, ...) ([]string, []string, []string)
- func TrimName(name string) string
- func TrimVersion(version string, groupChannel string) string
- type Profile
- type RHCSconfig
- type Response
Constants ¶
This section is empty.
Variables ¶
var RHCS = new(RHCSconfig)
var (
RHCSConnection = createConnectionWithToken(RHCSOCMToken)
)
Regular users in the organization 'Red Hat-Service Delivery-tester'
var (
RHCSOCMToken = os.Getenv(CON.TokenENVName)
)
Functions ¶
func ConvertFilterToString ¶ added in v1.4.0
func ConvertFilterToString(qs interface{}) (filter string)
ConvertFilterToString will Convert a fileter struct to a string if "like" in the value will be keeped if no 'like' in value, the string will contains key=value if map in value the substring will be key.subkey='subvalue'
func ConvertToMap ¶ added in v1.4.0
func ConvertToMap(qs interface{}) map[string]interface{}
func ConvertToStringArray ¶ added in v1.4.0
func ConvertToStringArray(interfaceList []interface{}) []string
ConvertToStringArray will convert the []interface to []string
func ConvertToStringMap ¶ added in v1.4.0
ConvertToStringMap will convert the []interface to []string
func ElementInArray ¶ added in v1.4.0
check if one element is in the array. if yes, return true; or return false
func GateWayURL ¶
func GateWayURL() string
func GenerateClusterCreationArgsByProfile ¶
func GenerateClusterCreationArgsByProfile(profile *Profile) (clusterArgs *EXE.ClusterCreationArgs, manifestsDir string, err error)
func GetElements ¶ added in v1.4.0
GetElements will return an array or a string get from the items based on the num If num 0 and itemkey id passed it will return the itemkey value with index 0
func GetEnvWithDefault ¶
func GetYAMLProfileFile ¶ added in v1.4.0
func PrepareAccountRoles ¶
func PrepareAccountRoles()
func PrepareKMSKey ¶
func PrepareKMSKey()
func PrepareProxy ¶
func PrepareProxy()
func PrepareRoute53 ¶
func PrepareRoute53()
func PrepareVPC ¶
func TrimVersion ¶ added in v1.4.0
Types ¶
type Profile ¶
type Profile struct { Name string `ini:"name,omitempty" json:"name,omitempty"` ClusterName string `ini:"cluster_name,omitempty" json:"cluster_name,omitempty"` ProductID string `ini:"product_id,omitempty" json:"product_id,omitempty"` Version string `ini:"version,omitempty" json:"version,omitempty"` //Version supports indicated version started with openshift-v or minor-1 ChannelGroup string `ini:"channel_group,omitempty" json:"channel_group,omitempty"` CloudProvider string `ini:"cloud_provider,omitempty" json:"cloud_provider,omitempty"` Region string `ini:"region,omitempty" json:"region,omitempty"` InstanceType string `ini:"instance_type,omitempty" json:"instance_type,omitempty"` Zones string `ini:"zones,omitempty" json:"zones,omitempty"` // zones should be like a,b,c,d StorageLB bool `ini:"storage_lb,omitempty" json:"storage_lb,omitempty"` // the unit is GIB, don't support unit set Tagging bool `ini:"tagging,omitempty" json:"tagging,omitempty"` Labeling bool `ini:"labeling,omitempty" json:"labeling,omitempty"` Etcd bool `ini:"etcd,omitempty" json:"etcd,omitempty"` FIPS bool `ini:"fips,omitempty" json:"fips,omitempty"` CCS bool `ini:"ccs,omitempty" json:"ccs,omitempty"` STS bool `ini:"sts,omitempty" json:"sts,omitempty"` Autoscale bool `ini:"autoscale,omitempty" json:"autoscale,omitempty"` MultiAZ bool `ini:"multi_az,omitempty" json:"multi_az,omitempty"` BYOVPC bool `ini:"byovpc,omitempty" json:"byovpc,omitempty"` PrivateLink bool `ini:"private_link,omitempty" json:"private_link,omitempty"` Private bool `ini:"private,omitempty" json:"private,omitempty"` BYOK bool `ini:"byok,omitempty" json:"byok,omitempty"` ETCDKMS bool `ini:"etcd_kms,omitempty" json:"etcd_kms,omitempty"` NetWorkingSet bool `ini:"networking_set,omitempty" json:"networking_set,omitempty"` Proxy bool `ini:"proxy,omitempty" json:"proxy,omitempty"` Hypershift bool `ini:"hypershift,omitempty" json:"hypershift,omitempty"` OIDCConfig string `ini:"oidc_config,omitempty" json:"oidc_config,omitempty"` ProvisionShard string `ini:"provisionShard,omitempty" json:"provisionShard,omitempty"` Ec2MetadataHttpTokens string `ini:"imdsv2,omitempty" json:"imdsv2,omitempty"` AuditLogForward bool `ini:"auditlog_forward,omitempty" json:"auditlog_forward,omitempty"` AdminEnabled bool `ini:"admin_enabled,omitempty" json:"admin_enabled,omitempty"` ManagedPolicies bool `ini:"managed_policies,omitempty" json:"managed_policies,omitempty"` VolumeSize int `ini:"volume_size,omitempty" json:"volume_size,omitempty"` ManifestsDIR string `ini:"manifests_dir,omitempty" json:"manifests_dir,omitempty"` }
Profile Provides profile struct for cluster creation be matrix
func LoadProfileYamlFile ¶ added in v1.4.0
func LoadProfileYamlFile() *Profile
func PrepareRHCSClusterByProfileENV ¶ added in v1.4.0
func PrepareRHCSClusterByProfileENV() (*Profile, *EXE.ClusterCreationArgs, string)
type RHCSconfig ¶
type RHCSconfig struct { // Env is the OpenShift Cluster Management environment used to provision clusters. RHCSEnv string `env:"RHCS_ENV" default:"staging" yaml:"env"` ClusterProfile string `env:"CLUSTER_PROFILE" yaml:"clusterProfile,omitempty"` ClusterProfileDir string `env:"CLUSTER_PROFILE_DIR" yaml:"clusterProfileDir,omitempty"` YAMLProfilesDir string }
RHCSConfig contains platforms info for the RHCS testing