Documentation
¶
Index ¶
- Constants
- Variables
- type MgmtServiceApiCtx
- func (serviceMgmtApi *MgmtServiceApiCtx) CreateConnectionRule(ctx context.Context, client *http.Client, rule *model.CdConnectionRule) (*model.PostCdConnectionsRuleCreated, error)
- func (serviceMgmtApi *MgmtServiceApiCtx) CreateDeployer(ctx context.Context, deployer model.Deployer) (*model.PostDeployersCreated, error)
- func (serviceMgmtApi *MgmtServiceApiCtx) CreateDeploymentRule(ctx context.Context, client *http.Client, rule *model.CdAppRule) (*model.PostCdDeploymentRuleCreated, error)
- func (serviceMgmtApi *MgmtServiceApiCtx) CreateEnvironment(ctx context.Context, client *http.Client, env *model.Environment) (*model.PostEnvironmentsCreated, error)
- func (serviceMgmtApi *MgmtServiceApiCtx) CreateKubernetesCluster(ctx context.Context, client *http.Client, cluster *model.KubernetesCluster) (*model.PostKubernetesClustersCreated, error)
- func (serviceMgmtApi *MgmtServiceApiCtx) DeleteCdConnectionsRule(ctx context.Context, client *http.Client, ruleId strfmt.UUID) error
- func (serviceMgmtApi *MgmtServiceApiCtx) DeleteCdPolicyPolicyID(params *model.DeleteCdPolicyPolicyIDParams) (*model.DeleteCdPolicyPolicyIDNoContent, error)
- func (serviceMgmtApi *MgmtServiceApiCtx) DeleteCiPolicyPolicyID(params *model.DeleteCiPolicyPolicyIDParams) (*model.DeleteCiPolicyPolicyIDNoContent, error)
- func (serviceMgmtApi *MgmtServiceApiCtx) DeleteDeployer(ctx context.Context, uuid strfmt.UUID) (*model.DeleteDeployersDeployerIDNoContent, error)
- func (serviceMgmtApi *MgmtServiceApiCtx) DeleteDeploymentRule(ctx context.Context, client *http.Client, ruleId strfmt.UUID) error
- func (serviceMgmtApi *MgmtServiceApiCtx) DeleteEnvironment(ctx context.Context, client *http.Client, envId strfmt.UUID) error
- func (serviceMgmtApi *MgmtServiceApiCtx) DeleteKubernetesCluster(ctx context.Context, client *http.Client, clusterId strfmt.UUID) error
- func (serviceMgmtApi *MgmtServiceApiCtx) DownloadKubernetesSecureCNBundle(ctx context.Context, client *http.Client, writer io.Writer, ...) error
- func (serviceMgmtApi *MgmtServiceApiCtx) GetCdConnectionsRule(ctx context.Context, client *http.Client, ruleId strfmt.UUID) (*model.GetCdRuleIDConnectionsRuleOK, error)
- func (serviceMgmtApi *MgmtServiceApiCtx) GetCdPolicy(params *model.GetCdPolicyParams) (*model.GetCdPolicyOK, error)
- func (serviceMgmtApi *MgmtServiceApiCtx) GetCiPolicy(params *model.GetCiPolicyParams) (*model.GetCiPolicyOK, error)
- func (serviceMgmtApi *MgmtServiceApiCtx) GetDeployerById(ctx context.Context, deployerId strfmt.UUID) (model.Deployer, error)
- func (serviceMgmtApi *MgmtServiceApiCtx) GetDeployersServiceAccountsByNamespace(ctx context.Context, clusterId strfmt.UUID, namespace string) (*model.GetDeployersServiceAccountsOK, error)
- func (serviceMgmtApi *MgmtServiceApiCtx) GetDeploymentRule(ctx context.Context, client *http.Client, ruleId strfmt.UUID) (*model.GetCdRuleIDDeploymentRuleOK, error)
- func (serviceMgmtApi *MgmtServiceApiCtx) GetEnvironment(ctx context.Context, client *http.Client, envId strfmt.UUID) (*model.GetEnvironmentsEnvIDOK, error)
- func (serviceMgmtApi *MgmtServiceApiCtx) GetKubernetesClusterById(ctx context.Context, client *http.Client, clusterId strfmt.UUID) (*model.GetKubernetesClustersKubernetesClusterIDOK, error)
- func (serviceMgmtApi *MgmtServiceApiCtx) GetKubernetesClusterIdByName(ctx context.Context, client *http.Client, kubernetesClusterName string) (*model.GetKubernetesClustersKubernetesClusterNameOK, error)
- func (serviceMgmtApi *MgmtServiceApiCtx) GetKubernetesClustersKubernetesClusterIDNamespaces(ctx context.Context, clusterId strfmt.UUID) (*model.GetKubernetesClustersKubernetesClusterIDNamespacesOK, error)
- func (serviceMgmtApi *MgmtServiceApiCtx) GetPspIdByName(ctx context.Context, client *http.Client, podSecurityPolicyProfileName string) (*model.GetCdPodSecurityPolicyProfilesPodSecurityPolicyProfileNameOK, error)
- func (serviceMgmtApi *MgmtServiceApiCtx) PostCdPolicy(params *model.PostCdPolicyParams) (*model.PostCdPolicyCreated, error)
- func (serviceMgmtApi *MgmtServiceApiCtx) PostCiPolicy(params *model.PostCiPolicyParams) (*model.PostCiPolicyCreated, error)
- func (serviceMgmtApi *MgmtServiceApiCtx) PutCdPolicyPolicyID(params *model.PutCdPolicyPolicyIDParams) (*model.PutCdPolicyPolicyIDOK, error)
- func (serviceMgmtApi *MgmtServiceApiCtx) PutCiPolicyPolicyID(params *model.PutCiPolicyPolicyIDParams) (*model.PutCiPolicyPolicyIDOK, error)
- func (serviceMgmtApi *MgmtServiceApiCtx) UpdateCdConnectionsRule(ctx context.Context, client *http.Client, rule *model.CdConnectionRule, ...) (*model.PutCdRuleIDConnectionsRuleOK, error)
- func (serviceMgmtApi *MgmtServiceApiCtx) UpdateDeployer(ctx context.Context, deployer model.Deployer) (*model.PutDeployersDeployerIDOK, error)
- func (serviceMgmtApi *MgmtServiceApiCtx) UpdateDeploymentRule(ctx context.Context, client *http.Client, rule *model.CdAppRule, ...) (*model.PutCdRuleIDDeploymentRuleOK, error)
- func (serviceMgmtApi *MgmtServiceApiCtx) UpdateEnvironment(ctx context.Context, client *http.Client, env *model.Environment, ...) (*model.PutEnvironmentsEnvIDOK, error)
- func (serviceMgmtApi *MgmtServiceApiCtx) UpdateKubernetesCluster(ctx context.Context, client *http.Client, cluster *model.KubernetesCluster, ...) (*model.PutKubernetesClustersKubernetesClusterIDOK, error)
- type TransportConfig
Constants ¶
const ( // DefaultHost is the default Host // found in Meta (info) section of spec file DefaultHost string = "localhost" // DefaultBasePath is the default BasePath // found in Meta (info) section of spec file DefaultBasePath string = "/api" )
Variables ¶
var DefaultSchemes = []string{"https"}
DefaultSchemes are the default schemes found in Meta (info) section of spec file
Functions ¶
This section is empty.
Types ¶
type MgmtServiceApiCtx ¶
type MgmtServiceApiCtx struct {
// contains filtered or unexported fields
}
func CreateServiceApi ¶
func CreateServiceApi(url, accessKey, secretKey string, client *http.Client) (*MgmtServiceApiCtx, error)
func (*MgmtServiceApiCtx) CreateConnectionRule ¶
func (serviceMgmtApi *MgmtServiceApiCtx) CreateConnectionRule(ctx context.Context, client *http.Client, rule *model.CdConnectionRule) (*model.PostCdConnectionsRuleCreated, error)
func (*MgmtServiceApiCtx) CreateDeployer ¶
func (serviceMgmtApi *MgmtServiceApiCtx) CreateDeployer(ctx context.Context, deployer model.Deployer) (*model.PostDeployersCreated, error)
func (*MgmtServiceApiCtx) CreateDeploymentRule ¶
func (serviceMgmtApi *MgmtServiceApiCtx) CreateDeploymentRule(ctx context.Context, client *http.Client, rule *model.CdAppRule) (*model.PostCdDeploymentRuleCreated, error)
func (*MgmtServiceApiCtx) CreateEnvironment ¶
func (serviceMgmtApi *MgmtServiceApiCtx) CreateEnvironment(ctx context.Context, client *http.Client, env *model.Environment) (*model.PostEnvironmentsCreated, error)
func (*MgmtServiceApiCtx) CreateKubernetesCluster ¶
func (serviceMgmtApi *MgmtServiceApiCtx) CreateKubernetesCluster(ctx context.Context, client *http.Client, cluster *model.KubernetesCluster) (*model.PostKubernetesClustersCreated, error)
func (*MgmtServiceApiCtx) DeleteCdConnectionsRule ¶
func (*MgmtServiceApiCtx) DeleteCdPolicyPolicyID ¶
func (serviceMgmtApi *MgmtServiceApiCtx) DeleteCdPolicyPolicyID(params *model.DeleteCdPolicyPolicyIDParams) (*model.DeleteCdPolicyPolicyIDNoContent, error)
func (*MgmtServiceApiCtx) DeleteCiPolicyPolicyID ¶
func (serviceMgmtApi *MgmtServiceApiCtx) DeleteCiPolicyPolicyID(params *model.DeleteCiPolicyPolicyIDParams) (*model.DeleteCiPolicyPolicyIDNoContent, error)
func (*MgmtServiceApiCtx) DeleteDeployer ¶
func (serviceMgmtApi *MgmtServiceApiCtx) DeleteDeployer(ctx context.Context, uuid strfmt.UUID) (*model.DeleteDeployersDeployerIDNoContent, error)
DeleteDeployer deletes an deployer
func (*MgmtServiceApiCtx) DeleteDeploymentRule ¶
func (*MgmtServiceApiCtx) DeleteEnvironment ¶
func (*MgmtServiceApiCtx) DeleteKubernetesCluster ¶
func (*MgmtServiceApiCtx) DownloadKubernetesSecureCNBundle ¶
func (*MgmtServiceApiCtx) GetCdConnectionsRule ¶
func (serviceMgmtApi *MgmtServiceApiCtx) GetCdConnectionsRule(ctx context.Context, client *http.Client, ruleId strfmt.UUID) (*model.GetCdRuleIDConnectionsRuleOK, error)
func (*MgmtServiceApiCtx) GetCdPolicy ¶
func (serviceMgmtApi *MgmtServiceApiCtx) GetCdPolicy(params *model.GetCdPolicyParams) (*model.GetCdPolicyOK, error)
func (*MgmtServiceApiCtx) GetCiPolicy ¶
func (serviceMgmtApi *MgmtServiceApiCtx) GetCiPolicy(params *model.GetCiPolicyParams) (*model.GetCiPolicyOK, error)
func (*MgmtServiceApiCtx) GetDeployerById ¶
func (*MgmtServiceApiCtx) GetDeployersServiceAccountsByNamespace ¶
func (serviceMgmtApi *MgmtServiceApiCtx) GetDeployersServiceAccountsByNamespace(ctx context.Context, clusterId strfmt.UUID, namespace string) (*model.GetDeployersServiceAccountsOK, error)
GetDeployersServiceAccountsByNamespace lists all the service account on the system
func (*MgmtServiceApiCtx) GetDeploymentRule ¶
func (serviceMgmtApi *MgmtServiceApiCtx) GetDeploymentRule(ctx context.Context, client *http.Client, ruleId strfmt.UUID) (*model.GetCdRuleIDDeploymentRuleOK, error)
func (*MgmtServiceApiCtx) GetEnvironment ¶
func (serviceMgmtApi *MgmtServiceApiCtx) GetEnvironment(ctx context.Context, client *http.Client, envId strfmt.UUID) (*model.GetEnvironmentsEnvIDOK, error)
func (*MgmtServiceApiCtx) GetKubernetesClusterById ¶
func (serviceMgmtApi *MgmtServiceApiCtx) GetKubernetesClusterById(ctx context.Context, client *http.Client, clusterId strfmt.UUID) (*model.GetKubernetesClustersKubernetesClusterIDOK, error)
func (*MgmtServiceApiCtx) GetKubernetesClusterIdByName ¶
func (serviceMgmtApi *MgmtServiceApiCtx) GetKubernetesClusterIdByName(ctx context.Context, client *http.Client, kubernetesClusterName string) (*model.GetKubernetesClustersKubernetesClusterNameOK, error)
func (*MgmtServiceApiCtx) GetKubernetesClustersKubernetesClusterIDNamespaces ¶
func (serviceMgmtApi *MgmtServiceApiCtx) GetKubernetesClustersKubernetesClusterIDNamespaces(ctx context.Context, clusterId strfmt.UUID) (*model.GetKubernetesClustersKubernetesClusterIDNamespacesOK, error)
GetKubernetesClustersKubernetesClusterIDNamespaces lists namespaces on a specific kubernetes cluster
func (*MgmtServiceApiCtx) GetPspIdByName ¶
func (serviceMgmtApi *MgmtServiceApiCtx) GetPspIdByName(ctx context.Context, client *http.Client, podSecurityPolicyProfileName string) (*model.GetCdPodSecurityPolicyProfilesPodSecurityPolicyProfileNameOK, error)
func (*MgmtServiceApiCtx) PostCdPolicy ¶
func (serviceMgmtApi *MgmtServiceApiCtx) PostCdPolicy(params *model.PostCdPolicyParams) (*model.PostCdPolicyCreated, error)
PostCdPolicy sets the current c d policy at least one cd policy element should be present
func (*MgmtServiceApiCtx) PostCiPolicy ¶
func (serviceMgmtApi *MgmtServiceApiCtx) PostCiPolicy(params *model.PostCiPolicyParams) (*model.PostCiPolicyCreated, error)
func (*MgmtServiceApiCtx) PutCdPolicyPolicyID ¶
func (serviceMgmtApi *MgmtServiceApiCtx) PutCdPolicyPolicyID(params *model.PutCdPolicyPolicyIDParams) (*model.PutCdPolicyPolicyIDOK, error)
func (*MgmtServiceApiCtx) PutCiPolicyPolicyID ¶
func (serviceMgmtApi *MgmtServiceApiCtx) PutCiPolicyPolicyID(params *model.PutCiPolicyPolicyIDParams) (*model.PutCiPolicyPolicyIDOK, error)
func (*MgmtServiceApiCtx) UpdateCdConnectionsRule ¶
func (serviceMgmtApi *MgmtServiceApiCtx) UpdateCdConnectionsRule(ctx context.Context, client *http.Client, rule *model.CdConnectionRule, ruleId strfmt.UUID) (*model.PutCdRuleIDConnectionsRuleOK, error)
func (*MgmtServiceApiCtx) UpdateDeployer ¶
func (serviceMgmtApi *MgmtServiceApiCtx) UpdateDeployer(ctx context.Context, deployer model.Deployer) (*model.PutDeployersDeployerIDOK, error)
func (*MgmtServiceApiCtx) UpdateDeploymentRule ¶
func (*MgmtServiceApiCtx) UpdateEnvironment ¶
func (serviceMgmtApi *MgmtServiceApiCtx) UpdateEnvironment(ctx context.Context, client *http.Client, env *model.Environment, envId strfmt.UUID) (*model.PutEnvironmentsEnvIDOK, error)
func (*MgmtServiceApiCtx) UpdateKubernetesCluster ¶
func (serviceMgmtApi *MgmtServiceApiCtx) UpdateKubernetesCluster(ctx context.Context, client *http.Client, cluster *model.KubernetesCluster, clusterId strfmt.UUID) (*model.PutKubernetesClustersKubernetesClusterIDOK, error)
type TransportConfig ¶
TransportConfig contains the transport related info, found in the meta section of the spec file.
func DefaultTransportConfig ¶
func DefaultTransportConfig() *TransportConfig
DefaultTransportConfig creates a TransportConfig with the default settings taken from the meta section of the spec file.
func (*TransportConfig) WithBasePath ¶
func (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig
WithBasePath overrides the default basePath, provided by the meta section of the spec file.
func (*TransportConfig) WithHost ¶
func (cfg *TransportConfig) WithHost(host string) *TransportConfig
WithHost overrides the default host, provided by the meta section of the spec file.
func (*TransportConfig) WithSchemes ¶
func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig
WithSchemes overrides the default schemes, provided by the meta section of the spec file.