Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NamespaceInfo ¶
type NamespaceInfo struct { AppID string `json:"appId"` ClusterName string `json:"clusterName"` NamespaceName string `json:"namespaceName"` Comment string `json:"comment"` Format string `json:"format"` IsPublic bool `json:"isPublic"` Items []KVItem `json:"items"` CreateBy string `json:"dataChangeCreatedBy"` LastModifyBy string `json:"dataChangeLastModifiedBy"` CreateTime string `json:"dataChangeCreatedTime"` LastModifyTime string `json:"dataChangeLastModifiedTime"` }
type OpenAPI ¶
type OpenAPI interface { Envs() ([]*Env, error) Namespaces() ([]*NamespaceInfo, error) NamespaceInfo(namespaceName string) (*NamespaceInfo, error) CreateNamespace(namespaceName string, format string, public bool, comment string, dataChangeCreatedBy string) error GetLock(namespaceName string) (*Lock, error) AddConfig(namespaceName string, key, value string, comment string, dataChangeCreatedBy string) error UpdateConfig(namespaceName string, key, value string, comment string, dataChangeLastModifiedBy string) error DeleteConfig(namespaceName string, key, operator string) error Release(namnespaceName string, releaseTitle string, releaseComment string, releaseBy string) error GetRelease(namespaceName string) (*Release, error) }
OpenAPI contains api to manage configs
type Release ¶
type Release struct { AppId string `json:"appId"` ClusterName string `json:"clusterName"` NamespaceName string `json:"namespaceName"` Name string `json:"name"` Configurations map[string]string `json:"configurations"` Comment string `json:"comment"` DataChangeCreatedBy string `json:"dataChangeCreatedBy"` DataChangeLastModifiedBy string `json:"dataChangeLastModifiedBy"` DataChangeCreatedTime string `json:"dataChangeCreatedTime"` DataChangeLastModifiedTime string `json:"dataChangeLastModifiedTime"` }
Click to show internal directories.
Click to hide internal directories.