Documentation ¶
Index ¶
- func InitClient(config *C7NContext, platformConfig *C7NConfig)
- type C7NClient
- func (c *C7NClient) CheckIsLogin() error
- func (c *C7NClient) CreateApp(out io.Writer, projectId int, appPostInfo *model.AppPostInfo)
- func (c *C7NClient) CreateCert(out io.Writer, projectId int, data *url.Values)
- func (c *C7NClient) CreateCluster(out io.Writer, projectId int, clusterPostInfo *model.ClusterPostInfo)
- func (c *C7NClient) CreateConfigMap(out io.Writer, projectId int, configMapPostInfo *model.ConfigMapPostInfo)
- func (c *C7NClient) CreateCustom(out io.Writer, projectId int, data *url.Values)
- func (c *C7NClient) CreateEnv(out io.Writer, projectId int, envPostInfo *model.EnvPostInfo)
- func (c *C7NClient) CreateIngress(out io.Writer, projectId int, ingressPostInfo *model.IngressPostInfo)
- func (c *C7NClient) CreateInstance(out io.Writer, projectId int, instancePostInfo *model.InstancePostInfo)
- func (c *C7NClient) CreatePv(out io.Writer, projectId int, pvPostInfo *model.PvPostInfo)
- func (c *C7NClient) CreatePvc(out io.Writer, projectId int, pvcPostInfo *model.PvcPostInfo)
- func (c *C7NClient) CreateSecret(out io.Writer, projectId int, secretPostInfo *model.SecretPostInfo)
- func (c *C7NClient) CreateService(out io.Writer, projectId int, servicePostInfo *model.ServicePostInfo)
- func (c *C7NClient) GetApp(appCode string, projectId int) (error error, result *model.App)
- func (c *C7NClient) GetAppVersion(out io.Writer, projectId int, version string, appId int) (error error, result *model.AppVersion)
- func (c *C7NClient) GetCert(out io.Writer, projectId int, envId int, name string) (error error, result *model.Certification)
- func (c *C7NClient) GetCluster(out io.Writer, projectId int, clusterCode string) (error error, result model.Cluster)
- func (c *C7NClient) GetEnv(out io.Writer, projectId int, code string) (error error, result *model.DevOpsEnv)
- func (c *C7NClient) GetEnvSyncStatus(envId int) (bool, error)
- func (c *C7NClient) GetOrganization(out io.Writer, userId int, orgCode string) (error error, organizationId int)
- func (c *C7NClient) GetProject(out io.Writer, userId int, proCode string) (error error, project model.Project)
- func (c *C7NClient) GetService(out io.Writer, projectId int, envId int, name string) (error error, result *model.DevOpsService)
- func (c *C7NClient) InstanceResources(out io.Writer, instancesId int)
- func (c *C7NClient) ListAppVersions(out io.Writer, appCode *string, projectId int)
- func (c *C7NClient) ListApps(out io.Writer, projectId int)
- func (c *C7NClient) ListCert(out io.Writer, projectId int, envId int)
- func (c *C7NClient) ListClusterNode(out io.Writer, projectId int, clusterId int)
- func (c *C7NClient) ListClusters(out io.Writer, projectId int)
- func (c *C7NClient) ListConfigMap(out io.Writer, projectId int, envId int)
- func (c *C7NClient) ListCustom(out io.Writer, projectId int, envId int)
- func (c *C7NClient) ListEnvs(out io.Writer, projectId int)
- func (c *C7NClient) ListEnvsInstance(out io.Writer, envId int)
- func (c *C7NClient) ListGenericCert(out io.Writer, projectId int)
- func (c *C7NClient) ListIngress(out io.Writer, envId int)
- func (c *C7NClient) ListOrganization(out io.Writer, userId int)
- func (c *C7NClient) ListProject(out io.Writer, userId int)
- func (c *C7NClient) ListPv(out io.Writer, projectId int)
- func (c *C7NClient) ListPvc(out io.Writer, projectId int, envId int)
- func (c *C7NClient) ListSecret(out io.Writer, projectId int, envId int)
- func (c *C7NClient) ListService(out io.Writer, envId int)
- func (c *C7NClient) ListValue(out io.Writer, envId int, valueDir string)
- func (c *C7NClient) Login(out io.Writer)
- func (c *C7NClient) Logout(out io.Writer)
- func (c *C7NClient) QueryGitlabUserId(out io.Writer, userId int, projectId int) (error error, gitlabUserId int)
- func (c *C7NClient) QuerySelf(out io.Writer) (error error, info model.UserInfo)
- func (c *C7NClient) SetOrganization(out io.Writer, userId int) (error error)
- func (c *C7NClient) SetProject(out io.Writer, userId int) (error error)
- func (c *C7NClient) SwitchContext(out io.Writer, name string)
- func (c *C7NClient) UseOrganization(out io.Writer, orgCode string)
- func (c *C7NClient) UseProject(out io.Writer, proCode string)
- type C7NConfig
- type C7NContext
- type C7NUser
- type SafeMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitClient ¶
func InitClient(config *C7NContext, platformConfig *C7NConfig)
Types ¶
type C7NClient ¶
type C7NClient struct { BaseURL string // contains filtered or unexported fields }
var Client C7NClient
func (*C7NClient) CheckIsLogin ¶
func (*C7NClient) CreateCert ¶
func (*C7NClient) CreateCluster ¶
func (*C7NClient) CreateConfigMap ¶
func (*C7NClient) CreateCustom ¶
func (*C7NClient) CreateIngress ¶
func (*C7NClient) CreateInstance ¶
func (*C7NClient) CreateSecret ¶
func (*C7NClient) CreateService ¶
func (*C7NClient) GetAppVersion ¶
func (*C7NClient) GetCluster ¶
func (*C7NClient) GetOrganization ¶
func (*C7NClient) GetProject ¶
func (*C7NClient) GetService ¶
func (*C7NClient) InstanceResources ¶
func (*C7NClient) ListAppVersions ¶
func (*C7NClient) ListClusterNode ¶
func (*C7NClient) ListConfigMap ¶
func (*C7NClient) ListCustom ¶
func (*C7NClient) ListGenericCert ¶
func (*C7NClient) ListIngress ¶
/devops/v1/projects/42/ingress/54/listByEnv
func (*C7NClient) ListOrganization ¶
func (*C7NClient) ListSecret ¶
func (*C7NClient) QueryGitlabUserId ¶
func (*C7NClient) SetOrganization ¶
func (*C7NClient) SetProject ¶
func (*C7NClient) UseOrganization ¶
type C7NConfig ¶
type C7NConfig struct { Contexts []C7NContext `yaml:"contexts"` CurrentContext string `yaml:"currentContext"` }
type C7NContext ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.