fetcher

package
v0.0.0-...-73f03d9 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FetchClusterQuery = `select name, kubeconfig from clusters where name = ?;`
)
View Source
const (
	FetchPluginQuery = `select name, repo_name, repo_url, chart_name, namespace, release_name, version from tools where name = ?;`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterDetails

type ClusterDetails struct {
	Name       string
	Kubeconfig string
}

func FetchClusterDetails

func FetchClusterDetails(log logging.Logger, clusterName string) (*ClusterDetails, error)

type ClusterStoreConfiguration

type ClusterStoreConfiguration struct {
	TableName string `envconfig:"CASSANDRA_CLUSTER_TABLE_NAME" default:"clusters"`
}

type CredentialFetcher

type CredentialFetcher struct {
	// contains filtered or unexported fields
}

func NewCredentialFetcher

func NewCredentialFetcher(log logging.Logger) (*CredentialFetcher, error)

func (*CredentialFetcher) FetchArgoCDDetails

func (c *CredentialFetcher) FetchArgoCDDetails(namespace, releaseName string) (*PluginResponse, error)

func (*CredentialFetcher) FetchPluginDetails

func (c *CredentialFetcher) FetchPluginDetails(req *PluginRequest) (*PluginResponse, error)

type PluginConfiguration

type PluginConfiguration struct {
	TableName string `envconfig:"CASSANDRA_TABLE_NAME" default:"tools"`
}

type PluginDetails

type PluginDetails struct {
	Name        string
	RepoName    string
	RepoURL     string
	ChartName   string
	Namespace   string
	ReleaseName string
	Version     string
}

func FetchPluginDetails

func FetchPluginDetails(log logging.Logger, pluginName string) (*PluginDetails, error)

type PluginRequest

type PluginRequest struct {
	PluginName string
}

type PluginResponse

type PluginResponse struct {
	ServiceURL   string
	IsSSLEnabled bool
	Username     string
	Password     string
}

Jump to

Keyboard shortcuts

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