rancherversion

package
v0.0.0-...-98e341c Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ConfigurationFileKey = "prime"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Brand          string `json:"brand" yaml:"brand"`
	GitCommit      string `json:"gitCommit" yaml:"gitCommit"`
	IsPrime        bool   `json:"isPrime" yaml:"isPrime" default:"false"`
	RancherVersion string `json:"rancherVersion" yaml:"rancherVersion"`
	Registry       string `json:"registry" yaml:"registry"`
}

func RequestRancherVersion

func RequestRancherVersion(rancherURL string) (*Config, error)

RequestRancherVersion Requests the rancher version from the rancher server, parses the returned json and returns a Config object, or an error.

Jump to

Keyboard shortcuts

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