Documentation
¶
Index ¶
- func ConvertYAMLtoJSONHelper(i interface{}) interface{}
- func CopyFile(source, target string)
- func CreateCopyKustomizeNamespace(namespace string)
- func GenUniqID() string
- func JSONToYAMLConvert(cnfg interface{}) []byte
- func LoadUserProjectConfig(path string) *v1.AtlasProject
- func ReadInYAMLFileAndConvert(pathToYamlFile string, cnfg interface{}) interface{}
- func SaveToFile(path string, data []byte)
- type AC
- type ClusterSpec
- type ISpec
- type ProjectSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertYAMLtoJSONHelper ¶
func ConvertYAMLtoJSONHelper(i interface{}) interface{}
ConvertYAMLtoJSONHelper converts the yaml to json recursively
func CreateCopyKustomizeNamespace ¶
func CreateCopyKustomizeNamespace(namespace string)
CreateCopyKustomizeNamespace create copy of `/deploy/namespaced` folder with kustomization file for overriding namespace
func JSONToYAMLConvert ¶
func JSONToYAMLConvert(cnfg interface{}) []byte
func LoadUserProjectConfig ¶
func LoadUserProjectConfig(path string) *v1.AtlasProject
LoadUserProjectConfig load configuration into object
func ReadInYAMLFileAndConvert ¶
func ReadInYAMLFileAndConvert(pathToYamlFile string, cnfg interface{}) interface{}
ReadInYAMLFileAndConvert reads in the yaml file given by the path given
func SaveToFile ¶
Types ¶
type AC ¶
type AC struct { metav1.TypeMeta `json:",inline"` ObjectMeta *metav1.ObjectMeta `json:"metadata,omitempty"` Spec ClusterSpec `json:"spec,omitempty"` }
func LoadUserClusterConfig ¶
LoadUserClusterConfig load configuration into object
func (*AC) ClusterFileName ¶
func (*AC) GetClusterNameResource ¶
type ClusterSpec ¶
type ClusterSpec v1.AtlasClusterSpec
type ISpec ¶
type ISpec interface { ProjectName(string) ISpec SecretRef(string) ISpec // TODO WhiteIP CompleteK8sConfig(string) []byte }
func NewProject ¶
func NewProject() ISpec
type ProjectSpec ¶
type ProjectSpec v1.AtlasProjectSpec
func (ProjectSpec) CompleteK8sConfig ¶
func (s ProjectSpec) CompleteK8sConfig(k8sname string) []byte
func (*ProjectSpec) ProjectName ¶
func (s *ProjectSpec) ProjectName(name string) ISpec
func (*ProjectSpec) SecretRef ¶
func (s *ProjectSpec) SecretRef(name string) ISpec
Click to show internal directories.
Click to hide internal directories.