setup

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2018 License: Apache-2.0 Imports: 33 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	KubeletCRILogPath = "/var/log/pods/"
)
View Source
const (
	UnitPath = "/run/systemd/system/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

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

func NewConfigSetup

func NewConfigSetup(givenRootPath string) (*Environment, error)

func (*Environment) Clean

func (e *Environment) Clean() error

func (*Environment) GetDBUSClient

func (e *Environment) GetDBUSClient() *dbus.Conn

func (*Environment) GetHostname

func (e *Environment) GetHostname() string

func (*Environment) GetHyperkubePath

func (e *Environment) GetHyperkubePath() string

func (*Environment) GetKubeconfigAuthPath

func (e *Environment) GetKubeconfigAuthPath() string

func (*Environment) GetKubeconfigInsecurePath

func (e *Environment) GetKubeconfigInsecurePath() string

func (*Environment) GetKubeletClient

func (e *Environment) GetKubeletClient() *http.Client

func (*Environment) GetKubeletHealthzPort

func (e *Environment) GetKubeletHealthzPort() int

TODO conf this

func (*Environment) GetKubeletPodListReq

func (e *Environment) GetKubeletPodListReq() *http.Request

func (*Environment) GetKubernetesClient

func (e *Environment) GetKubernetesClient() *kubernetes.Clientset

func (*Environment) GetManifestsABSPathToApply

func (e *Environment) GetManifestsABSPathToApply() string

func (*Environment) GetPublicIP

func (e *Environment) GetPublicIP() string

GetPublicIP should panic if nil

func (*Environment) GetResolvConfPath

func (e *Environment) GetResolvConfPath() string

func (*Environment) GetStaticPodPaths

func (e *Environment) GetStaticPodPaths() ([]string, error)

func (*Environment) GetSystemdUnits added in v0.3.0

func (e *Environment) GetSystemdUnits() []string

func (*Environment) IsCleaningIptables

func (e *Environment) IsCleaningIptables() bool

func (*Environment) IsDrainingPods

func (e *Environment) IsDrainingPods() bool

func (*Environment) IsSkippingStop

func (e *Environment) IsSkippingStop() bool

func (*Environment) IsWaitingKubeletGC

func (e *Environment) IsWaitingKubeletGC() bool

func (*Environment) Setup

func (e *Environment) Setup() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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