minishift

package
v0.0.0-...-bf90f01 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

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

Data encapsulates the Viper configuration object which stores the configuration data in-memory.

func NewData

func NewData() (*Data, error)

NewData creates a configuration reader object using a configurable configuration file path

func (*Data) GetMinishiftAdminName

func (c *Data) GetMinishiftAdminName() string

GetMinishiftAdminName returns the Minishift admin name

func (*Data) GetMinishiftAdminToken

func (c *Data) GetMinishiftAdminToken() string

GetMinishiftAdminToken returns the Minishift admin token

func (*Data) GetMinishiftURL

func (c *Data) GetMinishiftURL() string

GetMinishiftURL returns the Minishift URL

func (*Data) GetMinishiftUserName

func (c *Data) GetMinishiftUserName() string

GetMinishiftUserName returns the Minishift user name

func (*Data) GetMinishiftUserToken

func (c *Data) GetMinishiftUserToken() string

GetMinishiftUserToken returns the Minishift user token

func (*Data) String

func (c *Data) String() string

String returns the current configuration as a string

type TestSuite

type TestSuite struct {
	gormsupport.DBTestSuite
	ClusterService *stub.ClusterService

	Config *configuration.Data
	// contains filtered or unexported fields
}

TestSuite is a base for tests using Minishift and gorm db

func (*TestSuite) GetAuthService

func (s *TestSuite) GetAuthService(tenantID uuid.UUID) auth.Service

func (*TestSuite) GetClusterService

func (s *TestSuite) GetClusterService() cluster.Service

func (*TestSuite) GetConfig

func (s *TestSuite) GetConfig() *configuration.Data

func (*TestSuite) SetupTest

func (s *TestSuite) SetupTest()

func (*TestSuite) TearDownTest

func (s *TestSuite) TearDownTest()

func (*TestSuite) VerifyObjectsPresence

func (s *TestSuite) VerifyObjectsPresence(t *testing.T, nsBaseName, version string, required bool)

Jump to

Keyboard shortcuts

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