Documentation
¶
Index ¶
- func ConvertYAMLtoJSONHelper(i interface{}) interface{}
- func CopyFile(source, target 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) error
- type DBUser
- func (s *DBUser) AddRole(role string, db string, collection string) *DBUser
- func (s *DBUser) GetFilePath(ns string) string
- func (s *DBUser) SaveConfigurationTo(ns string)
- func (u *DBUser) WithAuthDatabase(name string) *DBUser
- func (s *DBUser) WithProjectRef(name string) *DBUser
- func (s *DBUser) WithSecretRef(name string) *DBUser
- type UserSpec
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 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 DBUser ¶ added in v0.5.0
type DBUser struct { metav1.TypeMeta `json:",inline"` ObjectMeta *metav1.ObjectMeta `json:"metadata,omitempty"` Spec UserSpec `json:"spec,omitempty"` }
func (*DBUser) GetFilePath ¶ added in v0.5.0
func (*DBUser) SaveConfigurationTo ¶ added in v0.5.0
func (*DBUser) WithAuthDatabase ¶ added in v0.5.0
func (*DBUser) WithProjectRef ¶ added in v0.5.0
func (*DBUser) WithSecretRef ¶ added in v0.5.0
type UserSpec ¶ added in v0.5.0
type UserSpec v1.AtlasDatabaseUserSpec
Click to show internal directories.
Click to hide internal directories.