Documentation ¶
Index ¶
- type AppInfo
- type BriefNamespace
- type Client
- func (c *Client) GetNamespace(appID, env, cluster, namespace string) (result *Namespace, err error)
- func (c *Client) ListApp() (list []*AppInfo, err error)
- func (c *Client) ListAppEnvsAndClusters(appID string) (envList []*EnvAndCluster, err error)
- func (c *Client) ListAppNamespace(appID, env, cluster string) (list []*Namespace, err error)
- func (c *Client) Release(appID, env, cluster, namespace string, args *ReleaseArgs) error
- func (c *Client) UpdateKeyVal(appID, env, cluster, namespace, key, val, updateUser string) error
- type EnvAndCluster
- type Items
- type Namespace
- type ReleaseArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppInfo ¶
type AppInfo struct { Name string `json:"name"` AppID string `json:"appId"` OrgID string `json:"orgId"` OrgName string `json:"orgName"` OwnerName string `json:"ownerName"` OwnerEmail string `json:"ownerEmail"` DataChangeCreatedBy string `json:"dataChangeCreatedBy"` DataChangeLastModifiedBy string `json:"dataChangeLastModifiedBy"` DataChangeCreatedTime string `json:"dataChangeCreatedTime"` DataChangeLastModifiedTime string `json:"dataChangeLastModifiedTime"` }
type BriefNamespace ¶
type Client ¶
type Client struct { *req.Client BaseURL string }
func (*Client) GetNamespace ¶
func (*Client) ListAppEnvsAndClusters ¶
func (c *Client) ListAppEnvsAndClusters(appID string) (envList []*EnvAndCluster, err error)
func (*Client) ListAppNamespace ¶
func (*Client) Release ¶
func (c *Client) Release(appID, env, cluster, namespace string, args *ReleaseArgs) error
func (*Client) UpdateKeyVal ¶
type EnvAndCluster ¶
type Items ¶
type Items struct { Key string `json:"key"` Value string `json:"value"` Comment string `json:"comment"` DataChangeCreatedBy string `json:"dataChangeCreatedBy"` DataChangeLastModifiedBy string `json:"dataChangeLastModifiedBy"` DataChangeCreatedTime string `json:"dataChangeCreatedTime"` DataChangeLastModifiedTime string `json:"dataChangeLastModifiedTime"` }
type Namespace ¶
type Namespace 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 []*Items `json:"items"` DataChangeCreatedBy string `json:"dataChangeCreatedBy"` DataChangeLastModifiedBy string `json:"dataChangeLastModifiedBy"` DataChangeCreatedTime string `json:"dataChangeCreatedTime"` DataChangeLastModifiedTime string `json:"dataChangeLastModifiedTime"` }
type ReleaseArgs ¶
Click to show internal directories.
Click to hide internal directories.