openshift

package
v1.5.0-prerelease.4 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateOCLoginCMD

func GenerateOCLoginCMD(server string, username string, password string, clusterid string, additioanlFlags ...string) string

func OcLogin

func OcLogin(ocLoginAtter OcAttributes) (string, error)

func RetryCMDRun

func RetryCMDRun(cmd string, timeout time.Duration) (string, error)

Types

type Console added in v1.5.0

type Console struct {
	ClusterName string
	ClusterID   string
	KubePath    string
	Private     bool
}

Console is openshift webconsole struct

func NewConsole added in v1.5.0

func NewConsole(clusterID string, connection *client.Connection) (console *Console, err error)

NewConsole need clusterID and connection passed. Will return the console with login=true

func (*Console) Config added in v1.5.0

func (c *Console) Config(kubeConfig string) (*Console, error)

Config will return the console which had been configured

func (*Console) IsConfiged added in v1.5.0

func (c *Console) IsConfiged() bool

IsConfiged will return whether the config file of the console is existed

type OcAttributes

type OcAttributes struct {
	Server          string
	Username        string
	Password        string
	ClusterID       string
	AdditioanlFlags []string
	Timeout         time.Duration
}

Jump to

Keyboard shortcuts

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