Documentation ¶
Index ¶
- Constants
- func AddClusterNode(instanceId string, id string, nodeType string, status string) error
- func AddNodeJoinCommand(id string, primaryJoin string, secondaryJoin string) error
- func AddNodeUpgradeCommand(id string, nodeName string, command string) error
- func Create(id, testID, testName string, priority int, ...) error
- func GetInstanceDuration(id string) (time.Duration, error)
- func GetLogs(id string) (string, error)
- func GetNextEnqueued(refID string) (*types.TestInstance, error)
- func GetNodeJoinCommand(id string) (string, string, error)
- func GetNodeLogs(id string) (string, error)
- func GetNodeStatus(id string) (string, error)
- func GetNodeUpgradeCommand(id, nodeName string) (string, error)
- func GetRunStatus(id string) (bool, error)
- func GetSonobuoyResults(id string) (string, error)
- func GetTestStats() (int64, int64, int64, error)
- func GetUniqueAddons(refID string) ([]string, error)
- func Healthz() error
- func List(refID string, limit int, offset int, addons map[string]string) ([]types.TestInstance, error)
- func NodeLogs(id string, logs string) error
- func Running(id string) error
- func SetInstanceFinishedAndSuccess(id string, isSuccess bool, failureReason string) error
- func SetInstanceLogs(id string, logs []byte) error
- func SetInstanceSonobuoyResults(id string, results []byte) error
- func SetInstanceUnsupported(id string) error
- func SkipEnqueuedByRef(refID string) error
- func Start(id string) error
- func Total(refID string, addons map[string]string) (int, error)
- func UpdateNodeStatus(id string, status string) error
- type KurlInstaller
- type KurlInstallerMetadata
Constants ¶
View Source
const CPUDefault = "4"
View Source
const MemoryDefault = "16Gi"
Variables ¶
This section is empty.
Functions ¶
func AddClusterNode ¶
func AddNodeJoinCommand ¶
func AddNodeUpgradeCommand ¶
func Create ¶
func Create(id, testID, testName string, priority int, refID, kurlYAML, kurlURL, kurlFlags, upgradeYAML, upgradeURL, supportbundleYAML, preInstallScript, postInstallScript, postUpgradeScript, osName, osVersion, osImage, osPreInit string, numPrimaryNode int, numSecondaryNode int, memory string, cpu string) error
func GetNextEnqueued ¶
func GetNextEnqueued(refID string) (*types.TestInstance, error)
func GetNodeLogs ¶
func GetNodeStatus ¶
func GetNodeUpgradeCommand ¶
func GetRunStatus ¶
func GetSonobuoyResults ¶
func GetTestStats ¶
GetTestStats returns the current numbers of pending, running, and timed out tests
func GetUniqueAddons ¶
func List ¶
func List(refID string, limit int, offset int, addons map[string]string) ([]types.TestInstance, error)
List returns a list of test instances. Note: pagination (limit and offset) are applied to instances with distinct kurl URLs (instances with same kurl URL count as 1)
func SetInstanceFinishedAndSuccess ¶
SetInstanceFinishedAndSuccess sets is_success, failure_reason and finished_at.
func SetInstanceLogs ¶
func SetInstanceUnsupported ¶
func SkipEnqueuedByRef ¶
func UpdateNodeStatus ¶
Types ¶
type KurlInstaller ¶
type KurlInstaller struct { APIVersion string `json:"apiVersion" yaml:"apiVersion"` Kind string `json:"kind" yaml:"kind"` Metadata KurlInstallerMetadata `json:"metadata" yaml:"metadata"` Spec map[string]interface{} `json:"spec" yaml:"spec"` }
type KurlInstallerMetadata ¶
type KurlInstallerMetadata struct {
Name string `json:"name" yaml:"name"`
}
Click to show internal directories.
Click to hide internal directories.