openshift

package
v0.0.0-...-14f0bbf Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2017 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Resources []Resource

Functions

func LoadResourcesFromSwagger

func LoadResourcesFromSwagger(swaggerFile string) error

LoadResourcesFromSwagger loads resource from a openshift official api swagger file

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}
var DefaultClient *Client

DefaultClient is just default client for now.

func NewClient

func NewClient() (*Client, error)

func (*Client) Stop

func (c *Client) Stop()

func (*Client) WatchResource

func (c *Client) WatchResource(r Resource, handler WatchFunc) *Watcher

type Resource

type Resource struct {
	Name     string
	WatchURL string
}

func ResourceByName

func ResourceByName(name string) *Resource

type WatchFunc

type WatchFunc func(r Resource, obj interface{})

type Watcher

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

func NewWatcher

func NewWatcher(host string, rc *rest.RESTClient, r Resource) *Watcher

func (*Watcher) Start

func (w *Watcher) Start(handler WatchFunc)

func (*Watcher) Stop

func (w *Watcher) Stop()

Jump to

Keyboard shortcuts

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