collect

package
v0.0.0-...-c111c04 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectData

func CollectData()

func CollectRancherData

func CollectRancherData(tempDirRoot string)

func CollectUpstreamCluster

func CollectUpstreamCluster(tempDirRoot string)

func CreateTmpDir

func CreateTmpDir() string

func RancherAllNamespaceYaml

func RancherAllNamespaceYaml(dir string)

func RancherDataDir

func RancherDataDir(dir string) string

func RancherDataEulaDate

func RancherDataEulaDate(config *rest.Config, dir string) string

func RancherDataServerUrl

func RancherDataServerUrl(config *rest.Config, dir string) string

func RancherDataUUID

func RancherDataUUID(config *rest.Config, dir string) string

func RancherDataVersion

func RancherDataVersion(config *rest.Config, dir string) string

func RancherDataWriteJson

func RancherDataWriteJson(dir string, RancherData *RancherInfo)

func RancherDataWriteYaml

func RancherDataWriteYaml(dir string, RancherData *RancherInfo)

func RancherK8sYamlCronjobs

func RancherK8sYamlCronjobs(dir string)

func RancherK8sYamlDaemonSets

func RancherK8sYamlDaemonSets(dir string)

func RancherK8sYamlDeployments

func RancherK8sYamlDeployments(dir string)

func RancherK8sYamlDir

func RancherK8sYamlDir(dir string) string

func RancherK8sYamlEndpoints

func RancherK8sYamlEndpoints(dir string)

func RancherK8sYamlIngresses

func RancherK8sYamlIngresses(dir string)

func RancherK8sYamlJobs

func RancherK8sYamlJobs(dir string)

func RancherK8sYamlPods

func RancherK8sYamlPods(dir string)

func RancherK8sYamlReplicaSets

func RancherK8sYamlReplicaSets(dir string)

func RancherK8sYamlServices

func RancherK8sYamlServices(dir string)

func RancherK8sYamlStatefulSets

func RancherK8sYamlStatefulSets(dir string)

func RancherResourcesClusterNodePools

func RancherResourcesClusterNodePools(config *rest.Config, dir string)

func RancherResourcesClusterNodeTemplates

func RancherResourcesClusterNodeTemplates(config *rest.Config, dir string)

func RancherResourcesClusterNodes

func RancherResourcesClusterNodes(config *rest.Config, dir string)

func RancherResourcesClusterTemplateRevisions

func RancherResourcesClusterTemplateRevisions(config *rest.Config, dir string)

func RancherResourcesClusterTemplates

func RancherResourcesClusterTemplates(config *rest.Config, dir string)

func RancherResourcesClusters

func RancherResourcesClusters(config *rest.Config, dir string)

func RancherResourcesDir

func RancherResourcesDir(dir string) string

func RancherResourcesFeatures

func RancherResourcesFeatures(config *rest.Config, dir string)

func TarGz

func TarGz(src string, dst string) error

func TimestampFile

func TimestampFile(dir string)

func UploadToS3

func UploadToS3(tarFile string) error

func UpstreamClusterNodes

func UpstreamClusterNodes(dir string)

func UpstreamDataDir

func UpstreamDataDir(dir string) string

Types

type RancherInfo

type RancherInfo struct {
	Timestamp time.Time `yaml:"timestamp"`
	Version   string    `yaml:"version"`
	UUID      string    `yaml:"uuid"`
	ServerUrl string    `yaml:"serverUrl"`
	EulaDate  string    `yaml:"eulaDate"`
}

type UpstreamClusterInfo

type UpstreamClusterInfo struct {
	Timestamp time.Time `yaml:"timestamp"`
	Version   string    `yaml:"version"`
	UUID      string    `yaml:"uuid"`
	ServerUrl string    `yaml:"serverUrl"`
	EulaDate  string    `yaml:"eulaDate"`
}

Jump to

Keyboard shortcuts

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