secrets

package
v0.107.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Copyright (C) 2021-2023, Kubefirst

This program is licensed under MIT. See the LICENSE file for more details.

This program is licensed under MIT. See the LICENSE file for more details.

This program is licensed under MIT. See the LICENSE file for more details.

This program is licensed under MIT. See the LICENSE file for more details.

This program is licensed under MIT. See the LICENSE file for more details.

This program is licensed under MIT. See the LICENSE file for more details.

Index

Constants

View Source
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

func GetCluster(clientSet kubernetes.Interface, clusterName string) (*pkgtypes.Cluster, error)

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 ImportClusterIfEmpty() (*pkgtypes.Cluster, error)

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

func MapToStructuredJSON(input map[string]interface{}) (interface{}, error)

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 ParseJSONToMap

func ParseJSONToMap(jsonStr string) (map[string][]byte, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL