config

package
v0.0.0-...-bbbf429 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2017 License: GPL-3.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	PubSubConfiguration      PubSubConfiguration      `yaml:"pubsub" validate:"required"`
	KubeBuilderConfiguration KubeBuilderConfiguration `yaml:"kubebuilder" validate:"required"`
	KubernetesConfiguration  KubernetesConfiguration  `yaml:"kubernetes" validate:"required"`
}

kubebuilder:

  mount: ./mount
  purgepubsub: true
	bypassVCS: true
	bypassBuild: true
	bypassKubernetes: false

gcp:

connectionString: beamery-trials
topic: cadium
subscriptionString: cadium-sub

Configuration representation of yaml

func LoadConfiguration

func LoadConfiguration(filepath string) (*Configuration, error)

LoadConfiguration ...

type KubeBuilderConfiguration

type KubeBuilderConfiguration struct {
	Mount            string `yaml:"mount" validate:"required"`
	Drainqueue       bool   `yaml:"drainqueue" validate:"required"`
	BypassVCS        bool   `yaml:"bypassVCS" validate:"required"`
	BypassBuild      bool   `yaml:"bypassBuild" validate:"required"`
	BypassKubernetes bool   `yaml:"bypassKubernetes" validate:"required"`
}

KubeBuilderConfiguration applicatoin configuration

type KubernetesConfiguration

type KubernetesConfiguration struct {
	InCluster bool   `yaml:"incluster" validate:"required"`
	MasterURL string `yaml:"masterurl" validate:"required"`
}

KubernetesConfiguration ...

type PubSubConfiguration

type PubSubConfiguration struct {
	ConnectionString   string `yaml:"connectionString"`
	Topic              string `yaml:"topic"`
	SubscriptionString string `yaml:"subscriptionString"`
}

PubSubConfiguration object

Jump to

Keyboard shortcuts

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