rancher

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertificateStateRefreshFunc

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

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

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

func NewListOpts

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 SecretStateRefreshFunc added in v0.1.1

func SecretStateRefreshFunc(client *rancher.RancherClient, secretID string) resource.StateRefreshFunc

SecretStateRefreshFunc returns a resource.StateRefreshFunc that is used to watch a Rancher Secret.

func StackStateRefreshFunc

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

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

func VolumeStateRefreshFunc added in v1.2.0

func VolumeStateRefreshFunc(client *rancher.RancherClient, volumeID string) resource.StateRefreshFunc

VolumeStateRefreshFunc returns a resource.StateRefreshFunc that is used to watch a Rancher Volume.

Types

type CLIConfig

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

CLIConfig used to store data from file.

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

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