Documentation ¶
Index ¶
- func EnvironmentStateRefreshFunc(client *Config, environmentID string) resource.StateRefreshFunc
- func GetActiveOrchestration(project *client.Project) string
- 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 StackStateRefreshFunc(client *rancherClient.RancherClient, stackID string) resource.StateRefreshFunc
- type Config
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 ¶
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 ¶
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)