Documentation ¶
Index ¶
- func CertificateStateRefreshFunc(client *rancher.RancherClient, certificateID string) resource.StateRefreshFunc
- func EnvironmentStateRefreshFunc(client *rancherClient.RancherClient, environmentID string) resource.StateRefreshFunc
- func HostStateRefreshFunc(client *rancher.RancherClient, hostID string) resource.StateRefreshFunc
- func NewListOpts() *client.ListOpts
- func Provider() terraform.ResourceProvider
- func RegistrationTokenStateRefreshFunc(client *rancherClient.RancherClient, regTID string) resource.StateRefreshFunc
- func RegistryCredentialStateRefreshFunc(client *rancherClient.RancherClient, registryCredID string) resource.StateRefreshFunc
- func RegistryStateRefreshFunc(client *rancherClient.RancherClient, registryID string) resource.StateRefreshFunc
- func SecretStateRefreshFunc(client *rancher.RancherClient, secretID string) resource.StateRefreshFunc
- func StackStateRefreshFunc(client *rancherClient.RancherClient, stackID string) resource.StateRefreshFunc
- func VolumeStateRefreshFunc(client *rancher.RancherClient, volumeID string) resource.StateRefreshFunc
- type CLIConfig
- type Config
- func (c *Config) CatalogClient() (*catalog.RancherClient, error)
- func (c *Config) EnvironmentClient(env string) (*rancherClient.RancherClient, error)
- func (c *Config) GlobalClient() (*rancherClient.RancherClient, error)
- func (c *Config) RegistryClient(id string) (*rancherClient.RancherClient, error)
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 ¶
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
Source Files ¶
- config.go
- data_source_rancher_certificate.go
- data_source_rancher_environment.go
- data_source_rancher_setting.go
- provider.go
- resource_rancher_certificate.go
- resource_rancher_environment.go
- resource_rancher_host.go
- resource_rancher_registration_token.go
- resource_rancher_registry.go
- resource_rancher_registry_credential.go
- resource_rancher_secret.go
- resource_rancher_stack.go
- resource_rancher_volume.go
- util.go