Help us shape the future of Go! Take the 2026 Go Developer Survey

namespaces

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const APIName = "kube-workspaces"

APIName is the name of the API as defined in the design.

View Source
const APIVersion = "1.0.0"

APIVersion is the version of the API as defined in the design.

View Source
const ServiceName = "namespaces"

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{"list"}

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 NewListEndpoint

func NewListEndpoint(s Service) goa.Endpoint

NewListEndpoint returns an endpoint function that calls the method "list" of service "namespaces".

Types

type Client

type Client struct {
	ListEndpoint goa.Endpoint
}

Client is the "namespaces" service client.

func NewClient

func NewClient(list goa.Endpoint) *Client

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

func (*Client) List

func (c *Client) List(ctx context.Context) (res []*Namespace, err error)

List calls the "list" endpoint of the "namespaces" service.

type Endpoints

type Endpoints struct {
	List goa.Endpoint
}

Endpoints wraps the "namespaces" service endpoints.

func NewEndpoints

func NewEndpoints(s Service) *Endpoints

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

func (*Endpoints) Use

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

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

type Namespace

type Namespace struct {
	// Namespace name
	Name string
	// Namespace phase
	Phase string
	// Creation timestamp
	CreatedAt *string
}

A Kubernetes namespace

type Service

type Service interface {
	// List available namespaces
	List(context.Context) (res []*Namespace, err error)
}

Namespace management

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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