Documentation ¶
Overview ¶
Copyright (C) 2021-2023, Kubefirst
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Copyright (C) 2021-2023, Kubefirst ¶
This program is licensed under MIT. See the LICENSE file for more details.
Index ¶
- Constants
- func AddSecretReferenceItem(clientSet kubernetes.Interface, secretName string, valueToAdd string) error
- func CreateClusterServiceList(clientSet kubernetes.Interface, clusterName string) error
- func CreateGitopsCatalogApps(clientSet kubernetes.Interface, catalogApps types.GitopsCatalogApps) error
- func DeleteCluster(clientSet kubernetes.Interface, clusterName string) error
- func DeleteClusterServiceListEntry(clientSet kubernetes.Interface, clusterName string, def *types.Service) error
- func DeleteEnvironment(clientSet kubernetes.Interface, envID string) error
- func DeleteSecretReference(clientSet kubernetes.Interface, secretName string, valueToDelete string) error
- func GetCluster(clientSet kubernetes.Interface, clusterName string) (*pkgtypes.Cluster, error)
- func GetClusters(clientSet kubernetes.Interface) ([]pkgtypes.Cluster, error)
- func GetEnvironment(clientSet kubernetes.Interface, name string) (pkgtypes.Environment, error)
- func GetEnvironments(clientSet kubernetes.Interface) ([]pkgtypes.Environment, error)
- func GetGitopsCatalogApps(clientSet kubernetes.Interface) (types.GitopsCatalogApps, error)
- func GetGitopsCatalogAppsByCloudProvider(clientSet kubernetes.Interface, cloudProvider string, gitProvider string) (types.GitopsCatalogApps, error)
- func GetSecretReference(clientSet kubernetes.Interface, secretName string) (*pkgtypes.SecretListReference, error)
- func GetService(clientSet kubernetes.Interface, clusterName string, serviceName string) (types.Service, error)
- func GetServices(clientSet kubernetes.Interface, clusterName string) (*types.ClusterServiceList, error)
- func ImportClusterIfEmpty() (*pkgtypes.Cluster, error)
- func InsertCluster(clientSet kubernetes.Interface, cl pkgtypes.Cluster) error
- func InsertClusterServiceListEntry(clientSet kubernetes.Interface, clusterName string, def *types.Service) error
- func InsertEnvironment(clientSet kubernetes.Interface, env pkgtypes.Environment) (pkgtypes.Environment, error)
- func MapToStructuredJSON(input map[string]interface{}) (interface{}, error)
- func ParseJSONToMap(jsonStr string) (map[string][]byte, error)
- func UpdateCluster(clientSet kubernetes.Interface, cluster pkgtypes.Cluster) error
- func UpdateEnvironment(clientSet kubernetes.Interface, id string, env types.EnvironmentUpdateRequest) error
- func UpdateGitopsCatalogApps(clientSet kubernetes.Interface) error
- func UpdateSecretReference(clientSet kubernetes.Interface, secretName string, ...) error
- func UpsertSecretReference(clientSet kubernetes.Interface, secretName string, ...) error
- type ClusterNotFoundError
Constants ¶
const (
KubefirstEnvironmentSecretName = "kubefirst-environments"
)
Variables ¶
This section is empty.
Functions ¶
func AddSecretReferenceItem ¶
func AddSecretReferenceItem(clientSet kubernetes.Interface, secretName string, valueToAdd string) error
func CreateClusterServiceList ¶
func CreateClusterServiceList(clientSet kubernetes.Interface, clusterName string) error
CreateClusterServiceList adds an entry for a cluster to the service list
func CreateGitopsCatalogApps ¶
func CreateGitopsCatalogApps(clientSet kubernetes.Interface, catalogApps types.GitopsCatalogApps) error
CreateGitopsCatalogApps
func DeleteCluster ¶
func DeleteCluster(clientSet kubernetes.Interface, clusterName string) error
DeleteCluster
func DeleteClusterServiceListEntry ¶
func DeleteClusterServiceListEntry(clientSet kubernetes.Interface, clusterName string, def *types.Service) error
DeleteClusterServiceListEntry removes a service entry from a cluster's service list
func DeleteEnvironment ¶
func DeleteEnvironment(clientSet kubernetes.Interface, envID string) error
func DeleteSecretReference ¶
func DeleteSecretReference(clientSet kubernetes.Interface, secretName string, valueToDelete string) error
func GetCluster ¶
GetCluster
func GetClusters ¶
func GetClusters(clientSet kubernetes.Interface) ([]pkgtypes.Cluster, error)
GetCluster
func GetEnvironment ¶
func GetEnvironment(clientSet kubernetes.Interface, name string) (pkgtypes.Environment, error)
GetEnvironment
func GetEnvironments ¶
func GetEnvironments(clientSet kubernetes.Interface) ([]pkgtypes.Environment, error)
GetEnvironments
func GetGitopsCatalogApps ¶
func GetGitopsCatalogApps(clientSet kubernetes.Interface) (types.GitopsCatalogApps, error)
GetGitopsCatalogApps
func GetGitopsCatalogAppsByCloudProvider ¶
func GetGitopsCatalogAppsByCloudProvider(clientSet kubernetes.Interface, cloudProvider string, gitProvider string) (types.GitopsCatalogApps, error)
GetGitopsCatalogAppsByCloudProvider
func GetSecretReference ¶
func GetSecretReference(clientSet kubernetes.Interface, secretName string) (*pkgtypes.SecretListReference, error)
func GetService ¶
func GetService(clientSet kubernetes.Interface, clusterName string, serviceName string) (types.Service, error)
GetService returns a single service associated with a given cluster
func GetServices ¶
func GetServices(clientSet kubernetes.Interface, clusterName string) (*types.ClusterServiceList, error)
GetServices returns services associated with a given cluster
func ImportClusterIfEmpty ¶
func InsertCluster ¶
func InsertCluster(clientSet kubernetes.Interface, cl pkgtypes.Cluster) error
InsertCluster
func InsertClusterServiceListEntry ¶
func InsertClusterServiceListEntry(clientSet kubernetes.Interface, clusterName string, def *types.Service) error
InsertClusterServiceListEntry appends a service entry for a cluster's service list
func InsertEnvironment ¶
func InsertEnvironment(clientSet kubernetes.Interface, env pkgtypes.Environment) (pkgtypes.Environment, error)
InsertEnvironment
func MapToStructuredJSON ¶
mapToStructuredJSON takes a map[string]interface{} as input, where some values may be JSON strings, and returns an interface{} that represents the structured JSON object.
func UpdateCluster ¶
func UpdateCluster(clientSet kubernetes.Interface, cluster pkgtypes.Cluster) error
UpdateCluster
func UpdateEnvironment ¶
func UpdateEnvironment(clientSet kubernetes.Interface, id string, env types.EnvironmentUpdateRequest) error
func UpdateGitopsCatalogApps ¶
func UpdateGitopsCatalogApps(clientSet kubernetes.Interface) error
UpdateGitopsCatalogApps
func UpdateSecretReference ¶
func UpdateSecretReference(clientSet kubernetes.Interface, secretName string, secretReference pkgtypes.SecretListReference) error
UpdateSecretReference
func UpsertSecretReference ¶ added in v0.106.0
func UpsertSecretReference(clientSet kubernetes.Interface, secretName string, secretReference pkgtypes.SecretListReference) error
Types ¶
type ClusterNotFoundError ¶ added in v0.106.0
type ClusterNotFoundError struct {
ClusterName string
}
func (*ClusterNotFoundError) Error ¶ added in v0.106.0
func (e *ClusterNotFoundError) Error() string
func (*ClusterNotFoundError) Is ¶ added in v0.106.0
func (e *ClusterNotFoundError) Is(target error) bool