config

package
v0.0.0-...-cc7b564 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// APIVersion to be used.
	APIVersion = "v1"
)

Variables

This section is empty.

Functions

func GetKubeClientConfig

func GetKubeClientConfig(uri *url.URL) (*kube_rest.Config, error)

GetKubeClientConfig returns rest client configuration based on the passed url.

Types

type InstanceConfig

type InstanceConfig struct {
	Project string
	Zone    string
	Name    string
}

InstanceConfig contains instance configuration details.

func InstanceConfigFromProviderId

func InstanceConfigFromProviderId(id string) (*InstanceConfig, error)

InstanceConfigFromProviderId creates InstanceConfig object from provider id which must be in format: gce://<project-id>/<zone>/<name> TODO(piosz): add better check whether the id is correct

type MigConfig

type MigConfig struct {
	MinSize int
	MaxSize int
	Project string
	Zone    string
	Name    string
}

MigConfig contains managed instance group configuration details.

func (*MigConfig) Node

func (migconfig *MigConfig) Node() *kube_api.Node

Node returns a template/dummy node for the mig.

func (*MigConfig) Url

func (migconfig *MigConfig) Url() string

Url builds GCE url for the MIG.

type MigConfigFlag

type MigConfigFlag []MigConfig

MigConfigFlag is an array of MIG configuration details. Working as a multi-value flag.

func (*MigConfigFlag) Set

func (migconfigflag *MigConfigFlag) Set(value string) error

Set adds a new configuration.

func (*MigConfigFlag) String

func (migconfigflag *MigConfigFlag) String() string

String returns string representation of the MIG.

Jump to

Keyboard shortcuts

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