rancher

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2017 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvironmentStateRefreshFunc

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

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

func GetActiveOrchestration

func GetActiveOrchestration(project *client.Project) string

GetActiveOrchestration get the name of the active orchestration for a environment

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 Config

type Config struct {
	*rancherClient.RancherClient
	APIURL    string
	AccessKey string
	SecretKey string
}

func (*Config) CatalogClient

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

func (*Config) CreateClient

func (c *Config) CreateClient() error

Create creates a generic Rancher client

func (*Config) EnvironmentClient

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

func (*Config) RegistryClient

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

Jump to

Keyboard shortcuts

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