service

package
v0.0.0-...-78c8ff7 Latest Latest
Warning

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

Go to latest
Published: May 22, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package service implements business logic to create Kubernetes resources against the Kubernetes API.

Index

Constants

View Source
const (
	RedactedString = "[REDACTED]"
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Config

type Config struct {
	// Dependencies.
	Logger micrologger.Logger

	// Sub-dependencies configs.
	AwsConfig awsutil.Config
	K8sConfig k8sutil.Config

	// AWS cerfificates options.
	PubKeyFile string

	Description string
	GitCommit   string
	Name        string
	Source      string
}

Config represents the configuration used to create a new service.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig provides a default configuration to create a new service by best effort.

func (Config) String

func (c Config) String() string

type Service

type Service struct {
	// Dependencies.
	Create  *create.Service
	Version *version.Service
	// contains filtered or unexported fields
}

func New

func New(config Config) (*Service, error)

New creates a new configured service object.

func (*Service) Boot

func (s *Service) Boot()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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