Documentation ¶
Index ¶
- Constants
- func IgnoreResourceNotFoundError(err error) error
- type AzDevOps
- func (az *AzDevOps) CreateEnvironment(project, name string) (*AzDevopsEnvironmentInstance, error)
- func (az *AzDevOps) CreateResourceEnvironment(name, projectName, namespace, serviceEndpointId string, environmentId int) error
- func (az *AzDevOps) CreateServiceEndpoint(projectId, name, description, kubeconfig string) (*AzDevopsServiceEndpoint, error)
- func (az *AzDevOps) FindEnvironment(project, name string) (*AzDevopsEnvironmentInstance, error)
- func (az *AzDevOps) FindProject(name string) (*AzDevOpsProject, error)
- func (az *AzDevOps) FindServiceEndpoint(project, name string) (*AzDevopsServiceEndpoint, error)
- type AzDevOpsProject
- type AzDevOpsProjectList
- type AzDevopsEnvironmentInstance
- type AzDevopsEnvironmentInstanceList
- type AzDevopsProjectReference
- type AzDevopsServiceEndpoint
- type AzDevopsServiceEndpointAuthorization
- type AzDevopsServiceEndpointList
- type AzDevopsServiceEndpointParameters
- type AzServiceEndpointProjectReferences
- type Error
- type Kubernetes
- func (k *Kubernetes) CreateKubeconfig(serviceAccountName, namespaceName, token string) (string, error)
- func (k *Kubernetes) CreateNamespace(ctx context.Context, namespaceName string) (*v1.Namespace, error)
- func (k *Kubernetes) CreateSecret(ctx context.Context, namespace, name, serviceAccountName string) (*v1.Secret, error)
- func (k *Kubernetes) CreateServiceAccount(ctx context.Context, namespaceName, serviceAccountName string) (*v1.ServiceAccount, error)
- func (k *Kubernetes) GetNamespace(ctx context.Context, namespaceName string) (*v1.Namespace, error)
- func (k *Kubernetes) GetSecret(ctx context.Context, namespace, secretName string) (*v1.Secret, error)
- func (k *Kubernetes) GetServiceAccount(ctx context.Context, namespace, serviceAccountName string) (*v1.ServiceAccount, error)
- func (k *Kubernetes) UpdateNamespaceLabels(ctx context.Context, namespaceName string, labels map[string]string) error
- type ResourceNotFoundError
Constants ¶
View Source
const ( URL_AZUREDEVOPS_ENVIRONMENT = "https://dev.azure.com/{organization}/{project}/_apis/distributedtask/environments?api-version=6.1-preview.1" URL_AZUREDEVOPS_SERVICE_ENDPOINT_GET = "https://dev.azure.com/{organization}/{project}/_apis/serviceendpoint/endpoints?api-version=7.1-preview.4" URL_AZUREDEVOPS_SERVICE_ENDPOINT_POST = "https://dev.azure.com/{organization}/_apis/serviceendpoint/endpoints?api-version=7.1-preview.4" URL_AZUREDEVOPS_PROJECTS = "https://dev.azure.com/{organization}/_apis/projects?api-version=7.1-preview.4" URL_AZUREDEVOPS_ENVIRONMENT_RESOURCE = "" /* 144-byte string literal not displayed */ KUBERNETES_DEFAULT_CONTEXT_NAME = "default" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AzDevOps ¶
func (*AzDevOps) CreateEnvironment ¶
func (az *AzDevOps) CreateEnvironment(project, name string) (*AzDevopsEnvironmentInstance, error)
func (*AzDevOps) CreateResourceEnvironment ¶
func (*AzDevOps) CreateServiceEndpoint ¶
func (az *AzDevOps) CreateServiceEndpoint(projectId, name, description, kubeconfig string) (*AzDevopsServiceEndpoint, error)
func (*AzDevOps) FindEnvironment ¶
func (az *AzDevOps) FindEnvironment(project, name string) (*AzDevopsEnvironmentInstance, error)
func (*AzDevOps) FindProject ¶
func (az *AzDevOps) FindProject(name string) (*AzDevOpsProject, error)
func (*AzDevOps) FindServiceEndpoint ¶
func (az *AzDevOps) FindServiceEndpoint(project, name string) (*AzDevopsServiceEndpoint, error)
type AzDevOpsProject ¶
type AzDevOpsProjectList ¶
type AzDevOpsProjectList struct { Count int `json:"count"` Value []AzDevOpsProject `json:"value"` }
type AzDevopsEnvironmentInstanceList ¶
type AzDevopsEnvironmentInstanceList struct { Count int `json:"count"` Value []AzDevopsEnvironmentInstance `json:"value"` }
type AzDevopsServiceEndpoint ¶
type AzDevopsServiceEndpoint struct { Id string `json:"id,omitempty"` Name string `json:"name"` Type string `json:"type"` URL string `json:"url,omitempty"` Description string `json:"description,omitempty"` Data map[string]interface{} `json:"data,omitempty"` Authorization AzDevopsServiceEndpointAuthorization `json:"authorization"` AzServiceEndpointProjectReferences []AzServiceEndpointProjectReferences `json:"serviceEndpointProjectReferences"` }
type AzDevopsServiceEndpointAuthorization ¶
type AzDevopsServiceEndpointAuthorization struct { Parameters AzDevopsServiceEndpointParameters `json:"parameters"` Scheme string `json:"scheme"` }
type AzDevopsServiceEndpointList ¶
type AzDevopsServiceEndpointList struct { Count int `json:"count"` Value []AzDevopsServiceEndpoint `json:"value"` }
type AzServiceEndpointProjectReferences ¶
type AzServiceEndpointProjectReferences struct { Description string `json:"description,omitempty"` Name string `json:"name,omitempty"` AzureDevopsProjectReference AzDevopsProjectReference `json:"projectReference,omitempty"` }
type Kubernetes ¶
func (*Kubernetes) CreateKubeconfig ¶
func (k *Kubernetes) CreateKubeconfig(serviceAccountName, namespaceName, token string) (string, error)
func (*Kubernetes) CreateNamespace ¶
func (*Kubernetes) CreateSecret ¶ added in v0.0.3
func (*Kubernetes) CreateServiceAccount ¶
func (k *Kubernetes) CreateServiceAccount(ctx context.Context, namespaceName, serviceAccountName string) (*v1.ServiceAccount, error)
func (*Kubernetes) GetNamespace ¶
func (*Kubernetes) GetServiceAccount ¶
func (k *Kubernetes) GetServiceAccount(ctx context.Context, namespace, serviceAccountName string) (*v1.ServiceAccount, error)
func (*Kubernetes) UpdateNamespaceLabels ¶
type ResourceNotFoundError ¶
type ResourceNotFoundError struct {
// contains filtered or unexported fields
}
func (*ResourceNotFoundError) Error ¶
func (e *ResourceNotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.