podinfo

package
v0.0.0-...-4fabe5d Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceName = "podinfo"

ServiceName is the name of the service as defined in the design. This is the same value that is set in the endpoint request contexts under the ServiceKey key.

Variables

View Source
var MethodNames = [1]string{"get"}

MethodNames lists the service method names as defined in the design. These are the same values that are set in the endpoint request contexts under the MethodKey key.

Functions

func NewGetEndpoint

func NewGetEndpoint(s Service) goa.Endpoint

NewGetEndpoint returns an endpoint function that calls the method "get" of service "podinfo".

func NewViewedPodinforesult

func NewViewedPodinforesult(res *Podinforesult, view string) *podinfoviews.Podinforesult

NewViewedPodinforesult initializes viewed result type Podinforesult from result type Podinforesult using the given view.

Types

type Client

type Client struct {
	GetEndpoint goa.Endpoint
}

Client is the "podinfo" service client.

func NewClient

func NewClient(get goa.Endpoint) *Client

NewClient initializes a "podinfo" service client given the endpoints.

func (*Client) Get

func (c *Client) Get(ctx context.Context) (res *Podinforesult, err error)

Get calls the "get" endpoint of the "podinfo" service.

type Endpoints

type Endpoints struct {
	Get goa.Endpoint
}

Endpoints wraps the "podinfo" service endpoints.

func NewEndpoints

func NewEndpoints(s Service) *Endpoints

NewEndpoints wraps the methods of the "podinfo" service with endpoints.

func (*Endpoints) Use

func (e *Endpoints) Use(m func(goa.Endpoint) goa.Endpoint)

Use applies the given middleware to all the "podinfo" service endpoints.

type Podinforesult

type Podinforesult struct {
	// POD ip address
	IP string
	// POD hostname
	Hostname string
}

Podinforesult is the result type of the podinfo service get method.

func NewPodinforesult

func NewPodinforesult(vres *podinfoviews.Podinforesult) *Podinforesult

NewPodinforesult initializes result type Podinforesult from viewed result type Podinforesult.

type Service

type Service interface {
	// Get implements get.
	Get(context.Context) (res *Podinforesult, err error)
}

The podinfo service pulls info about current pod

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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