rancher

package
v0.9.11 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2017 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertificateStateRefreshFunc added in v0.9.0

func CertificateStateRefreshFunc(client *rancher.RancherClient, certificateID string) resource.StateRefreshFunc

CertificateStateRefreshFunc returns a resource.StateRefreshFunc that is used to watch a Rancher Certificate.

func EnvironmentStateRefreshFunc

func EnvironmentStateRefreshFunc(client *rancherClient.RancherClient, environmentID string) resource.StateRefreshFunc

EnvironmentStateRefreshFunc returns a resource.StateRefreshFunc that is used to watch a Rancher Environment.

func HostStateRefreshFunc added in v0.9.0

func HostStateRefreshFunc(client *rancher.RancherClient, hostID string) resource.StateRefreshFunc

HostStateRefreshFunc returns a resource.StateRefreshFunc that is used to watch a Rancher Host.

func NewListOpts added in v0.9.0

func NewListOpts() *client.ListOpts

NewListOpts wraps around client.NewListOpts()

func Provider

func Provider() terraform.ResourceProvider

Provider returns a terraform.ResourceProvider.

func RegistrationTokenStateRefreshFunc

func RegistrationTokenStateRefreshFunc(client *rancherClient.RancherClient, regTID string) resource.StateRefreshFunc

RegistrationTokenStateRefreshFunc returns a resource.StateRefreshFunc that is used to watch a Rancher RegistrationToken.

func RegistryCredentialStateRefreshFunc

func RegistryCredentialStateRefreshFunc(client *rancherClient.RancherClient, registryCredID string) resource.StateRefreshFunc

RegistryCredentialStateRefreshFunc returns a resource.StateRefreshFunc that is used to watch a Rancher Environment.

func RegistryStateRefreshFunc

func RegistryStateRefreshFunc(client *rancherClient.RancherClient, registryID string) resource.StateRefreshFunc

RegistryStateRefreshFunc returns a resource.StateRefreshFunc that is used to watch a Rancher Environment.

func StackStateRefreshFunc

func StackStateRefreshFunc(client *rancherClient.RancherClient, stackID string) resource.StateRefreshFunc

StackStateRefreshFunc returns a resource.StateRefreshFunc that is used to watch a Rancher Stack.

Types

type CLIConfig added in v0.8.7

type CLIConfig struct {
	AccessKey   string `json:"accessKey"`
	SecretKey   string `json:"secretKey"`
	URL         string `json:"url"`
	Environment string `json:"environment"`
	Path        string `json:"path,omitempty"`
}

type Config

type Config struct {
	APIURL    string
	AccessKey string
	SecretKey string
}

Config is the configuration parameters for a Rancher API

func (*Config) CatalogClient

func (c *Config) CatalogClient() (*catalog.RancherClient, error)

CatalogClient creates a Rancher client scoped to a Catalog's API

func (*Config) EnvironmentClient

func (c *Config) EnvironmentClient(env string) (*rancherClient.RancherClient, error)

EnvironmentClient creates a Rancher client scoped to an Environment's API

func (*Config) GlobalClient added in v0.8.6

func (c *Config) GlobalClient() (*rancherClient.RancherClient, error)

GlobalClient creates a Rancher client scoped to the global API

func (*Config) RegistryClient

func (c *Config) RegistryClient(id string) (*rancherClient.RancherClient, error)

RegistryClient creates a Rancher client scoped to a Registry's API

Jump to

Keyboard shortcuts

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