host

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	G8sClient versioned.Interface
	Logger    micrologger.Logger

	Provider string
}

Config represents the configuration used to create a new service object.

type ProviderSpec

type ProviderSpec struct {
	Workers []Worker
}

type Request

type Request struct {
	ClusterID string
}

Request is the configuration for the service action.

type Response

type Response struct {
	Endpoint string                 `json:"endpoint"`
	Status   v1alpha1.StatusCluster `json:"cluster"`
	Spec     ProviderSpec           `json:"provider_spec"`
}

Response holds the data returned from the cluster searcher endpoint.

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is an object representing the health searcher service.

func New

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

New creates a new configured service object.

func (*Service) SearchStatusCluster

func (s *Service) SearchStatusCluster(ctx context.Context, request Request) (*Response, error)

SearchStatusCluster searches for the StatusCluster of a provider-specific cluster config CR.

type Worker

type Worker struct {
	DockerVolumeSizeGB int64 `json:"docker_volume_size_gb"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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