Documentation ¶
Overview ¶
In this package you can find useful methods which interacting with the openshift cluster.
Index ¶
- func ChangeProject(projectName string)
- func CheckErrorMessage(err error, message string)
- func CreateObject(path string)
- func CreateSecret(secretName string)
- func GetAllValue(...)
- func GetAllValueFromObject(confObject confObject.ConfObject)
- func GetAllValueReturn(...) (string, string, string, string, string, string, string, string, string, string, ...)
- func GetAllValueReturnObject(confObject confObject.ConfObject) confObject.ConfObject
- func GetDeploymentReplicaSet(pod string) (string, string)
- func GetObjects(typeObject string) string
- func GetSizeVolume(podName, containerName, pathData string) string
- func GetTypeObjects(ObjectsOc, ObjectsTypes []string) []string
- func GetValueFromConfig(s string) interface{}
- func In_array(val interface{}, array interface{}) (exists bool, index int)
- func LoginAdmin(cluster string)
- func LoginCluster(cluster, username, password string)
- func ReadJson(path, name string) map[string]interface{}
- func ReadJsonArray(path, name string) []map[string]interface{}
- func ReadJsonData(path string) []map[string]interface{}
- func WriteJson(path, name string, data map[string]interface{}) error
- func WriteJsonArray(path, name string, data []map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckErrorMessage ¶
functions that show the error in the console with some message
func CreateSecret ¶
func CreateSecret(secretName string)
Create a secret. All the info of the object should be in templates/secrets secretName supported are s3 or minio
func GetAllValue ¶
func GetAllValue(PathTemplate, PathData, ClusterFrom, ClusterTo, ProjectTo, ProjectFrom, UsernameTo, UsernameFrom, PasswordFrom, PasswordTo string, ObjectsOc []string)
Get ALL the configuration using the key: "s" from the config file ~/.volume2volume.yaml
func GetAllValueFromObject ¶
func GetAllValueFromObject(confObject confObject.ConfObject)
func GetAllValueReturn ¶
func GetAllValueReturn(PathTemplate, PathData, ClusterFrom, ClusterTo, ProjectTo, ProjectFrom, UsernameTo, UsernameFrom, PasswordFrom, PasswordTo string, ObjectsOc []string) (string, string, string, string, string, string, string, string, string, string, []string)
Get ALL the configuration using the key: "s" from the config file ~/.volume2volume.yaml
func GetAllValueReturnObject ¶
func GetAllValueReturnObject(confObject confObject.ConfObject) confObject.ConfObject
func GetDeploymentReplicaSet ¶
func GetObjects ¶
Get the objects of the typeObjects in the cluster and the project that you login beforehand.
func GetSizeVolume ¶
Get size of the volume (used for stats)
func GetTypeObjects ¶
GET CONFIGURATION
func GetValueFromConfig ¶
func GetValueFromConfig(s string) interface{}
Get the configuration using the key: "s" from the config file ~/.volume2volume.yaml
func LoginAdmin ¶
func LoginAdmin(cluster string)
Login to the user admin (minishift) TODO chante it for production clusters
func LoginCluster ¶
func LoginCluster(cluster, username, password string)
login in the openshift cluster
func WriteJsonArray ¶
Json functions
Types ¶
This section is empty.