core

package
v0.30.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

README

Kubernetes service

This service is *k8s.io/client-go/kubernetes.Clientset proxy

It defines helper method to deal with basic operation with human friendly way.

To check all supported method run

     endly -s='kubernetes'

or to check service contract endly -s='kubernetes' -a=ACTION

     endly -s='kubernetes' -a=get

Usage

Get k8s resource info

endly -run='kubernetes:get' kind=pod

work in progress

Global contract parameters

  • context
  • namespace

Documentation

Index

Constants

View Source
const (
	//ServiceID Kubernetes service ID.
	ServiceID = "kubernetes"
)

Variables

This section is empty.

Functions

func New

func New() *service

New creates a new Storage service

func ProcessResource

func ProcessResource(context *endly.Context, resource *url.Resource, handler func(meta *metav1.TypeMeta, data map[string]interface{}) error) error

Types

type ApplyRequest

type ApplyRequest struct {
	Source url.Resource
	metav1.GetOptions
}

type CreateRequest

type CreateRequest struct {
	*url.Resource
}

type CreateResponse

type CreateResponse struct {
	Items []interface{}
}

type GetRequest

type GetRequest struct {
	Name string
	metav1.ListOptions
	OutputTemplate string
	OutputPaths    map[string]string
	// contains filtered or unexported fields
}

func (*GetRequest) Init

func (r *GetRequest) Init() (err error)

type GetResponse

type GetResponse interface{}

Directories

Path Synopsis
v1
v1
v1
v1
v1
v1
v1

Jump to

Keyboard shortcuts

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