Documentation ¶
Index ¶
- Variables
- func ConfigFromFile(filename string) (*rest.Config, error)
- func CreateProject(clientConfig *rest.Config, namespace string, adminUser string) (*projectapiv1.Project, error)
- func DefaultLocalIP4() (net.IP, error)
- func FindFreeLocalPort() (int, error)
- func UserClientConfig(clientConfig *rest.Config, token string) *rest.Config
- func WaitHTTP(rt http.RoundTripper, url string) error
- func WaitTCP(addr string) error
- type CloseFunc
- type Master
- func (m *Master) AdminKubeConfig() *rest.Config
- func (m *Master) AdminKubeConfigPath() string
- func (m *Master) Close()
- func (m *Master) CreateProject(namespace, user string) *projectapiv1.Project
- func (m *Master) CreateUser(username string, password string) *User
- func (m *Master) StartRegistry(t *testing.T) *Registry
- type MasterContainer
- type Registry
- type Repository
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoDefaultIP = errors.New("no suitable IP address")
ErrNoDefaultIP is returned when no suitable non-loopback address can be found.
Functions ¶
func CreateProject ¶
func DefaultLocalIP4 ¶
DefaultLocalIP4 returns an IPv4 address that this host can be reached on. Will return ErrNoDefaultIP if no suitable address can be found.
github.com/openshift/origin/pkg/cmd/util.DefaultLocalIP4
func FindFreeLocalPort ¶
FindFreeLocalPort returns the number of an available port number on the loopback interface. Useful for determining the port to launch a server on. Error handling required - there is a non-zero chance that the returned port number will be bound by another process after this function returns.
k8s.io/kubernetes/test/integration/framework.FindFreeLocalPort
Types ¶
type Master ¶
type Master struct {
// contains filtered or unexported fields
}
func (*Master) AdminKubeConfig ¶
func (*Master) AdminKubeConfigPath ¶
func (*Master) CreateProject ¶
func (m *Master) CreateProject(namespace, user string) *projectapiv1.Project
type MasterContainer ¶
func StartMasterContainer ¶
func StartMasterContainer(configDir string) (*MasterContainer, error)
func (*MasterContainer) Stop ¶
func (c *MasterContainer) Stop() error
func (*MasterContainer) WaitHealthz ¶
func (c *MasterContainer) WaitHealthz(configDir string) error
func (*MasterContainer) WriteConfigs ¶
func (c *MasterContainer) WriteConfigs(configDir string) error
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func (*Registry) Repository ¶
func (r *Registry) Repository(namespace string, imagestream string, user *User) *Repository
type Repository ¶
type Repository struct { distribution.Repository // contains filtered or unexported fields }
func (*Repository) BaseURL ¶
func (r *Repository) BaseURL() string
func (*Repository) RepoName ¶
func (r *Repository) RepoName() string
func (*Repository) Transport ¶
func (r *Repository) Transport() http.RoundTripper
Click to show internal directories.
Click to hide internal directories.