occlient

package
Version: v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpenShiftNameSpace = "openshift"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.0.3

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

func New added in v0.0.3

func New() (*Client, error)

func (*Client) CreateNewProject added in v0.0.3

func (c *Client) CreateNewProject(name string) error

func (*Client) CreateRoute added in v0.0.3

func (c *Client) CreateRoute(service string, labels map[string]string) (*routev1.Route, error)

CreateRoute creates a route object for the given service and with the given labels

func (*Client) Delete added in v0.0.3

func (c *Client) Delete(kind string, name string, labels map[string]string) (string, error)

Delete calls oc delete kind is always required (can be set to 'all') name can be omitted if labels are set, in that case set name to ” if you want to delete object just by its name set labels to nil

func (*Client) DeleteProject added in v0.0.3

func (c *Client) DeleteProject(name string) error

func (*Client) DeleteRoute added in v0.0.3

func (c *Client) DeleteRoute(name string) error

DeleteRoute deleted the given route

func (*Client) FollowBuildLog added in v0.0.3

func (c *Client) FollowBuildLog(buildName string) error

FollowBuildLog stream build log to stdout

func (*Client) GetBuildConfig added in v0.0.3

func (c *Client) GetBuildConfig(name string, project string) (*buildv1.BuildConfig, error)

GetBuildConfig get BuildConfig by its name

func (*Client) GetClusterServiceClassExternalNames added in v0.0.3

func (c *Client) GetClusterServiceClassExternalNames() ([]string, error)

GetClusterServiceClassExternalNames returns the names of all the cluster service classes in the cluster

func (*Client) GetClusterServiceClasses added in v0.0.3

func (c *Client) GetClusterServiceClasses() ([]scv1beta1.ClusterServiceClass, error)

GetClusterServiceClasses queries the service service catalog to get all the currently available cluster service classes

func (*Client) GetCurrentProjectName added in v0.0.3

func (c *Client) GetCurrentProjectName() (string, error)

func (*Client) GetImageStreams added in v0.0.3

func (c *Client) GetImageStreams(namespace string) ([]imagev1.ImageStream, error)

GetImageStreams returns the Image Stream objects in the given namespace

func (*Client) GetImageStreamsNames added in v0.0.3

func (c *Client) GetImageStreamsNames(namespace string) ([]string, error)

GetImageStreamsNames returns the names of the image streams in a given namespace

func (*Client) GetLabelValues added in v0.0.3

func (c *Client) GetLabelValues(project string, label string, selector string) ([]string, error)

GetLabelValues get label values of given label from objects in project that are matching selector returns slice of uniq label values

func (*Client) GetProjects added in v0.0.3

func (c *Client) GetProjects() (string, error)

func (*Client) ListRouteNames added in v0.0.3

func (c *Client) ListRouteNames(labelSelector string) ([]string, error)

ListRouteNames lists all the names of the routes based on the given label selector

func (*Client) ListRoutes added in v0.0.3

func (c *Client) ListRoutes(labelSelector string) ([]routev1.Route, error)

ListRoutes lists all the routes based on the given label selector

func (*Client) NewAppS2I added in v0.0.3

func (c *Client) NewAppS2I(name string, builderImage string, gitUrl string, labels map[string]string, annotations map[string]string) (string, error)

NewAppS2I create new application using S2I if gitUrl is "" than it creates binary build otherwise uses gitUrl as buildSource

func (*Client) SetCurrentProject added in v0.0.3

func (c *Client) SetCurrentProject(project string) error

func (*Client) SetVolumes added in v0.0.3

func (c *Client) SetVolumes(config *VolumeConfig, operations *VolumeOpertaions) (string, error)

func (*Client) StartBinaryBuild added in v0.0.3

func (c *Client) StartBinaryBuild(name string, dir string) error

StartBinaryBuild starts new build and streams dir as source for build

func (*Client) StartBuild added in v0.0.3

func (c *Client) StartBuild(name string) error

StartBuild starts new build as it is

type OcCommand

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

type VolumeConfig

type VolumeConfig struct {
	Name             *string
	Size             *string
	DeploymentConfig *string
	Path             *string
}

type VolumeOpertaions

type VolumeOpertaions struct {
	Add    bool
	Remove bool
	List   bool
}

Source Files

Jump to

Keyboard shortcuts

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