rancher

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(rancherUrl string, rancherAccessKey string, rancherSecretKey string) (*Client, error)

NewClient returns a new client for the Rancher/Cattle API

func (*Client) AddCertificate

func (r *Client) AddCertificate(name, descr string, privateKey, cert []byte) (*rancherClient.Certificate, error)

AddCertificate creates a new certificate resource using the given private key and PEM encoded certificate

func (*Client) FindCertByName

func (r *Client) FindCertByName(name string) (*rancherClient.Certificate, error)

FindCertByName retrieves an existing certificate

func (*Client) GetCertById

func (r *Client) GetCertById(certId string) (*rancherClient.Certificate, error)

GetCertById retrieves an existing certificate by ID

func (*Client) UpdateCertificate

func (r *Client) UpdateCertificate(certId, descr string, privateKey, cert []byte) error

UpdateCertificate updates an existing certificate resource using the given PEM encoded certificate

func (*Client) UpgradeLoadBalancers

func (r *Client) UpgradeLoadBalancers(certId string) error

UpgradeLoadBalancers upgrades all load balancers with the renewed certificate

func (*Client) WaitCertificate

func (r *Client) WaitCertificate(certificate *rancherClient.Certificate) error

WaitCertificate waits for a certificate resource to transition

func (*Client) WaitFor

func (r *Client) WaitFor(resource *rancherClient.Resource, output interface{}, transitioning func() string) error

WaitFor waits for a resource to reach a certain state.

func (*Client) WaitLoadBalancerService

func (r *Client) WaitLoadBalancerService(lb *rancherClient.LoadBalancerService) error

WaitLoadBalancerService waits for a loadbalancer service resource to transition

func (*Client) WaitService

func (r *Client) WaitService(service *rancherClient.Service) error

WaitService waits for a loadbalancer resource to transition

Jump to

Keyboard shortcuts

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