serviceprovider

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Config        config.Config
	ClusterConfig *rest.Config
	Mongo         *mongo.Service
	Prometheus    *prometheusprovider.Service
	KubeCtl       *kubeCtl.KubeCtl
	Validator     *validator.Validate
}

Container is the structure for container

func New

func New(cf config.Config) *Container

New will create container

func NewContainer

func NewContainer(configPath string) *Container

NewContainer will new a container

func NewForTesting

func NewForTesting(cf config.Config) *Container

NewForTesting will test container for creating a container

type Service

type Service interface{}

Service is the interface

type ServiceDiscoverResponse

type ServiceDiscoverResponse struct {
	Container map[string]Service `json:"services"`
}

ServiceDiscoverResponse is the structure for Service Discover Response

Jump to

Keyboard shortcuts

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