node

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

Documentation

Overview

Package node provides information about nodes in tenant clusters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Config

type Config struct {
	Logger        micrologger.Logger
	TenantCluster tenantcluster.Interface
}

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

type Request

type Request struct {
	ClusterID string
	Endpoint  string
}

Request is the configuration for the service action.

type Response

type Response struct {
	Nodes []v1.Node `json:"nodes"`
}

Response holds the data returned from the ListNodes function.

type Service

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

Service holds the dependencies for the Tenant service.

func New

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

New creates a new configured service object.

func (*Service) ListNodes

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

ListNodes returns a slice of Nodes in a tenant cluster.

Jump to

Keyboard shortcuts

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