infra

package
v0.0.0-...-d7aa82b Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClustersFolder = "clusters"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type InfraContext

type InfraContext struct {
	ctx.ExporterContext

	ClusterFolder string

	ExportScript string
	// contains filtered or unexported fields
}

func NewInfraContextFromConfig

func NewInfraContextFromConfig(config *config.Config, clusterConfig *config.ClusterConfig, connectionStatus *connect.ConnectionStatus, logger *logrus.Logger) *InfraContext

func (*InfraContext) InitClusterFolderForUid

func (c *InfraContext) InitClusterFolderForUid(uid string) string

type InfraExporter

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

func NewInfraExporterFromConfig

func NewInfraExporterFromConfig(config *config.Config, clusterConfig *config.ClusterConfig, connectionStatus *connect.ConnectionStatus, logger *logrus.Logger) *InfraExporter

func (*InfraExporter) Export

func (e *InfraExporter) Export() InfraExporterOutput

type InfraExporterOutput

type InfraExporterOutput struct {
	Uid          string `json:"uid"`
	ClusterId    string `json:"clusterId"`
	Status       string `json:"status"`
	ErrorMessage string `json:"errorMessage"`
	Location     string `json:"location"`
}

Jump to

Keyboard shortcuts

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