Documentation
¶
Overview ¶
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright paskal.maksim@gmail.com Licensed under the Apache License, Version 2.0 (the "License") you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Variables
- func CreateGitlabPipeline(ns string, projectID string, branch string) (string, error)
- func DeleteClusterRolesAndBindings(ns string) error
- func DeleteGitlabRegistryTag(tag string, projectID string) error
- func DeleteNamespace(ns string) error
- func DeletePod(ns string, pod string, labelSelector string) error
- func DisableHPA(ns string) error
- func DisableMTLS(ns string) error
- func GetGitlabClient() *gitlab.Client
- func GetLeaseLock(podNamespace string, podName string) (*resourcelock.LeaseLock, error)
- func GetRunningPodsCount(ns string) (int, error)
- func Init() error
- func RemoveOrphanedClusterRoles() error
- func SaveNamespaceAnnotation(ns string, annotation map[string]string) error
- func ScaleNamespace(ns string, replicas int32) error
- type DeleteALLResult
- type DeleteALLResultOperation
- type ExecContainerResults
- type GetClusterKubeconfigResult
- type GetFrontConfigBatch
- type GetFrontConfigItem
- type GetFrontConfigResult
- type GetGitlabPipelinesStatusResults
- type GetGitlabProjectBranchItem
- type GetGitlabProjectsInfoItem
- type GetGitlabProjectsItem
- type GetIngressList
- type GetPodByImageResult
- type GetPodsItem
- type GetPodsItemContainers
- type GetServicesItem
Constants ¶
This section is empty.
Variables ¶
var (
Ctx = context.Background()
)
Functions ¶
func CreateGitlabPipeline ¶ added in v0.3.1
func DeleteClusterRolesAndBindings ¶ added in v0.3.1
delete all cluster role and bindings linken to namespace.
func DeleteGitlabRegistryTag ¶ added in v0.2.7
DeleteRegistryTag deletes gitlab registry tag.
func DeleteNamespace ¶ added in v0.2.7
DeleteNamespace delete kubernetes namespace.
func DisableHPA ¶ added in v0.2.7
func DisableMTLS ¶ added in v0.2.9
func GetGitlabClient ¶ added in v0.3.1
func GetGitlabClient() *gitlab.Client
func GetLeaseLock ¶ added in v0.3.1
func GetLeaseLock(podNamespace string, podName string) (*resourcelock.LeaseLock, error)
func GetRunningPodsCount ¶ added in v0.2.7
GetRunningPodsCount get count of pods in namespace.
func RemoveOrphanedClusterRoles ¶ added in v0.3.1
func RemoveOrphanedClusterRoles() error
remove orphaned cluster role that not linked to namespace.
func SaveNamespaceAnnotation ¶ added in v0.2.9
saveNamespaceAnnotation annotation anotation in namespace.
func ScaleNamespace ¶ added in v0.2.7
ScaleNamespace scale deployments and statefullsets.
Types ¶
type DeleteALLResult ¶ added in v0.2.7
type DeleteALLResult struct { DeleteNamespaceResult DeleteALLResultOperation DeleteGitlabRegistryTagResult DeleteALLResultOperation DeleteClusterRolesAndBindings DeleteALLResultOperation }
func DeleteALL ¶ added in v0.2.7
func DeleteALL(ns string, tag string, projectID string) *DeleteALLResult
func (*DeleteALLResult) JSON ¶ added in v0.2.7
func (t *DeleteALLResult) JSON() string
type DeleteALLResultOperation ¶ added in v0.2.7
type DeleteALLResultOperation struct {
Result string
}
type ExecContainerResults ¶ added in v0.2.7
func ExecContainer ¶ added in v0.2.7
type GetClusterKubeconfigResult ¶ added in v0.2.7
type GetClusterKubeconfigResult struct { Endpoint string CACrt string CACrtBase64 string Token string }
func GetClusterKubeconfig ¶ added in v0.2.7
func GetClusterKubeconfig(cluster string) (*GetClusterKubeconfigResult, error)
type GetFrontConfigBatch ¶ added in v0.3.1
type GetFrontConfigItem ¶ added in v0.3.1
type GetFrontConfigResult ¶ added in v0.3.1
type GetFrontConfigResult struct { Version string Links config.Links Batch GetFrontConfigBatch Clusters []GetFrontConfigItem ExternalServicesTemplates []config.Template DebugTemplates []config.Template }
func GetFrontConfig ¶ added in v0.3.1
func GetFrontConfig() *GetFrontConfigResult
Get config for front pages.
type GetGitlabPipelinesStatusResults ¶ added in v0.3.1
func GetGitlabPipelinesStatus ¶ added in v0.3.1
func GetGitlabPipelinesStatus(projectID string, ns string) (*GetGitlabPipelinesStatusResults, error)
type GetGitlabProjectBranchItem ¶ added in v0.3.1
type GetGitlabProjectBranchItem struct { Name string // contains filtered or unexported fields }
func GetGitlabProjectBranches ¶ added in v0.3.1
func GetGitlabProjectBranches(projectID string) ([]*GetGitlabProjectBranchItem, error)
type GetGitlabProjectsInfoItem ¶ added in v0.3.1
type GetGitlabProjectsInfoItem struct { PodRunning *GetPodByImageResult Pipelines *GetGitlabPipelinesStatusResults }
func GetGitlabProjectsInfo ¶ added in v0.3.1
func GetGitlabProjectsInfo(projectID string, ns string) (*GetGitlabProjectsInfoItem, error)
type GetGitlabProjectsItem ¶ added in v0.2.7
type GetGitlabProjectsItem struct { ProjectID int Name string Description string DefaultBranch string WebURL string TagsList []string AdditionalInfo string // custom field for front end Deploy bool // custom field for front end }
func GetGitlabProjects ¶ added in v0.2.7
func GetGitlabProjects() ([]*GetGitlabProjectsItem, error)
type GetIngressList ¶ added in v0.2.7
type GetIngressList struct { Namespace string Cluster string NamespaceName string NamespaceStatus string NamespaceCreated string NamespaceCreatedDays int NamespaceLastScaled string NamespaceLastScaledDays int NamespaceAnotations map[string]string IngressName string IngressAnotations map[string]string IngressLabels map[string]string Hosts []string GitBranch string RunningPodsCount int }
func GetIngress ¶ added in v0.2.7
func GetIngress() ([]*GetIngressList, error)
GetIngress list all kubernetes-manager ingresses.
type GetPodByImageResult ¶ added in v0.3.1
func GetPodByImage ¶ added in v0.3.1
func GetPodByImage(ns string, imagePrefix string) (*GetPodByImageResult, error)
type GetPodsItem ¶ added in v0.2.7
type GetPodsItem struct { PodName string PodLabels map[string]string PodContainers []GetPodsItemContainers }
func GetPods ¶ added in v0.2.7
func GetPods(ns string) ([]*GetPodsItem, error)
type GetPodsItemContainers ¶ added in v0.2.7
type GetPodsItemContainers struct {
ContainerName string
}
type GetServicesItem ¶ added in v0.2.7
type GetServicesItem struct { Name string ServiceHost string ExternalName string Ports string Labels string }
func GetServices ¶ added in v0.2.7
func GetServices(ns string) ([]*GetServicesItem, error)
Return services and pods with port.
Source Files
¶
- GetGitlabPipelinesStatus.go
- common.go
- createGitlabPipeline.go
- deleteALL.go
- deleteClusterRolesAndBindings.go
- deleteNamespace.go
- deletePod.go
- deleteRegistryTag.go
- disableHPA.go
- disableMTLS.go
- errors.go
- execContainer.go
- getClusterKubeconfig.go
- getFrontConfig.go
- getGitlabClient.go
- getGitlabProjectBranches.go
- getGitlabProjects.go
- getGitlabProjectsInfo.go
- getIngress.go
- getLock.go
- getPodByImage.go
- getPods.go
- getRunningPodsCount.go
- getServices.go
- init.go
- metrics.go
- saveNamespaceAnnotation.go
- scaleNamespace.go
- utils.go