Documentation
¶
Index ¶
- func LoadUserProjectConfig(path string) ap
- type AC
- type ClusterSpec
- type DBUser
- func (s *DBUser) AddRole(role string, db string, collection string) *DBUser
- func (s *DBUser) GetFilePath(projectName string) string
- func (s *DBUser) SaveConfigurationTo(folder string)
- func (u *DBUser) WithAuthDatabase(name string) *DBUser
- func (s *DBUser) WithProjectRef(name string) *DBUser
- func (s *DBUser) WithSecretRef(name string) *DBUser
- type ISpec
- type ProjectSpec
- type UserInputs
- type UserSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadUserProjectConfig ¶
func LoadUserProjectConfig(path string) ap
LoadUserProjectConfig load configuration from file into object
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 *AC) ClusterFileName(input UserInputs) string
func (*AC) GetClusterNameResource ¶
type ClusterSpec ¶
type ClusterSpec v1.AtlasClusterSpec
type DBUser ¶
type DBUser struct { metav1.TypeMeta `json:",inline"` ObjectMeta *metav1.ObjectMeta `json:"metadata,omitempty"` Spec UserSpec `json:"spec,omitempty"` }
func (*DBUser) GetFilePath ¶
func (*DBUser) SaveConfigurationTo ¶
func (*DBUser) WithAuthDatabase ¶
func (*DBUser) WithProjectRef ¶
func (*DBUser) WithSecretRef ¶
type ISpec ¶
type ISpec interface { ProjectName(string) ISpec SecretRef(string) ISpec WithIpAccess(string, string) ISpec 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
func (*ProjectSpec) WithIpAccess ¶
func (s *ProjectSpec) WithIpAccess(ipAdress, comment string) ISpec
type UserInputs ¶
type UserInputs struct { ProjectName string ProjectID string KeyName string Namespace string K8sProjectName string K8sFullProjectName string ProjectPath string Clusters []AC Users []DBUser }
TODO PRIVATE?
func NewUserInputs ¶
func NewUserInputs(keyName string, users []DBUser) UserInputs
NewUsersInputs prepare users inputs
func (*UserInputs) GetAppFolder ¶
func (u *UserInputs) GetAppFolder() string
func (*UserInputs) GetOperatorFolder ¶
func (u *UserInputs) GetOperatorFolder() string
func (*UserInputs) GetResourceFolder ¶
func (u *UserInputs) GetResourceFolder() string
func (*UserInputs) GetUsersFolder ¶
func (u *UserInputs) GetUsersFolder() string
type UserSpec ¶
type UserSpec v1.AtlasDatabaseUserSpec
Click to show internal directories.
Click to hide internal directories.