pod

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 pod provides information about pods 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 {
	Pods []v1.Pod `json:"pods"`
}

Response holds the data returned from the ListPods 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) ListPods

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

ListPods returns a slice of Pods in all namespaces of a tenant cluster.

Jump to

Keyboard shortcuts

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