Documentation ¶
Index ¶
- func Init(c *conf.Config) (err error)
- type Dao
- func (d *Dao) AppExist(appName string) bool
- func (d *Dao) ClusterExist(appName, clusterName string) bool
- func (d *Dao) CreateApp(appName, description string) (*model.App, error)
- func (d *Dao) CreateCluster(appName, clusterName, description string) (*model.Cluster, error)
- func (d *Dao) CreateNamespace(appName, clusterName, namespaceName, format, description string) (*model.Namespace, error)
- func (d *Dao) DeleteApp(appName string) error
- func (d *Dao) DeleteCluster(appName, clusterName string) error
- func (d *Dao) DeleteNamespace(appName, clusterName, namespaceName string) error
- func (d *Dao) Disconnect() error
- func (d *Dao) ListApps() (apps []model.App, err error)
- func (d *Dao) ListClusters(appName string) (clusters []model.Cluster, err error)
- func (d *Dao) ListNamespaces(appName, clusterName string) (namespaces []*model.Namespace, err error)
- func (d *Dao) NamespaceExist(appName, clusterName, namespaceName string) bool
- func (d *Dao) Ping() error
- func (d *Dao) ReadConfig(appName, clusterName, namespaceName string) (*model.Namespace, error)
- func (d *Dao) ReleaseConfig(appName, clusterName, namespaceName, value, comment string, ...) error
- func (d *Dao) UpdateConfig(appName, clusterName, namespaceName, value string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao def
func (*Dao) ClusterExist ¶
func (*Dao) CreateCluster ¶
func (*Dao) CreateNamespace ¶
func (*Dao) DeleteCluster ¶
func (*Dao) DeleteNamespace ¶
func (*Dao) Disconnect ¶
func (*Dao) ListClusters ¶
func (*Dao) ListNamespaces ¶
func (*Dao) NamespaceExist ¶
func (*Dao) ReadConfig ¶
func (*Dao) ReleaseConfig ¶
func (*Dao) UpdateConfig ¶
Click to show internal directories.
Click to hide internal directories.