service

package
v0.0.0-...-4762671 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	// DefaultRetryCount is the number of times to retry a failed network call.
	DefaultRetryCount = 5
	// DefaultTimeout is the timeout for network calls.
	DefaultTimeout = 5 * time.Second
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Config

type Config struct {
	G8sClient     versioned.Interface
	Logger        micrologger.Logger
	TenantCluster tenantcluster.Interface
	Provider      string

	Description string
	GitCommit   string
	Name        string
	Source      string
	Version     string
}

Config represents the configuration used to create a new service.

type Service

type Service struct {
	Host    *host.Service
	Health  *health.Service
	Tenant  *tenant.Service
	Version *version.Service
	// contains filtered or unexported fields
}

func New

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

New creates a new configured service object.

Directories

Path Synopsis
key
key
node
Package node provides information about nodes in tenant clusters.
Package node provides information about nodes in tenant clusters.
pod
Package pod provides information about pods in tenant clusters.
Package pod provides information about pods in tenant clusters.

Jump to

Keyboard shortcuts

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