Documentation ¶
Index ¶
- Constants
- Variables
- func FloatAtLeast(min float64) schema.SchemaValidateFunc
- func FloatGreater(min float64) schema.SchemaValidateFunc
- func IntGreater(min int) schema.SchemaValidateFunc
- func Provider() terraform.ResourceProvider
- func WebsiteDomainURL() string
- func ZipPathToBytes(root string) ([]byte, error)
- type CloudIamUpdater
- type Config
- type FolderIamUpdater
- type FunctionIamUpdater
- type IndexedUserSpec
- type MySQLHostSpec
- type Policy
- type PostgreSQLHostSpec
- type ReducedDiskServiceClient
- type ResourceIamUpdater
- type S3Website
- type ServiceAccountIamUpdater
- func (u *ServiceAccountIamUpdater) DescribeResource() string
- func (u *ServiceAccountIamUpdater) GetMutexKey() string
- func (u *ServiceAccountIamUpdater) GetResourceID() string
- func (u *ServiceAccountIamUpdater) GetResourceIamPolicy() (*Policy, error)
- func (u *ServiceAccountIamUpdater) SetResourceIamPolicy(policy *Policy) error
Constants ¶
View Source
const StandardImagesFolderID = "standard-images"
Variables ¶
View Source
var IamCloudSchema = map[string]*schema.Schema{ "cloud_id": { Type: schema.TypeString, Required: true, ForceNew: true, }, }
View Source
var IamFolderSchema = map[string]*schema.Schema{ "folder_id": { Type: schema.TypeString, Required: true, ForceNew: true, }, }
View Source
var IamFunctionSchema = map[string]*schema.Schema{ "function_id": { Type: schema.TypeString, Required: true, ForceNew: true, }, }
View Source
var IamMemberBaseSchema = map[string]*schema.Schema{ "role": { Type: schema.TypeString, Required: true, ForceNew: true, }, "member": { Type: schema.TypeString, Required: true, ForceNew: true, ValidateFunc: validateIamMember, }, "sleep_after": { Type: schema.TypeInt, Optional: true, ForceNew: true, }, }
View Source
var IamPolicyBaseSchema = map[string]*schema.Schema{ "policy_data": { Type: schema.TypeString, Required: true, DiffSuppressFunc: shouldSuppressDiffForPolicies, ValidateFunc: validateIamPolicy, }, }
View Source
var IamServiceAccountSchema = map[string]*schema.Schema{ "service_account_id": { Type: schema.TypeString, Required: true, ForceNew: true, }, }
Functions ¶
func FloatAtLeast ¶ added in v0.5.2
func FloatAtLeast(min float64) schema.SchemaValidateFunc
FloatAtLeast returns a SchemaValidateFunc which tests if the provided value is of type float64 and is at least min (inclusive)
func FloatGreater ¶ added in v0.44.0
func FloatGreater(min float64) schema.SchemaValidateFunc
FloatAtLeast returns a SchemaValidateFunc which tests if the provided value is of type float64 and is greater than provided min (not inclusive)
func IntGreater ¶ added in v0.44.0
func IntGreater(min int) schema.SchemaValidateFunc
IntGreater returns a SchemaValidateFunc which tests if the provided value is of type int and is greater than provided min (not inclusive)
func Provider ¶
func Provider() terraform.ResourceProvider
func WebsiteDomainURL ¶ added in v0.44.0
func WebsiteDomainURL() string
func ZipPathToBytes ¶ added in v0.44.0
Types ¶
type CloudIamUpdater ¶
type CloudIamUpdater struct { Config *Config // contains filtered or unexported fields }
func (*CloudIamUpdater) DescribeResource ¶
func (u *CloudIamUpdater) DescribeResource() string
func (*CloudIamUpdater) GetMutexKey ¶
func (u *CloudIamUpdater) GetMutexKey() string
func (*CloudIamUpdater) GetResourceID ¶
func (u *CloudIamUpdater) GetResourceID() string
func (*CloudIamUpdater) GetResourceIamPolicy ¶
func (u *CloudIamUpdater) GetResourceIamPolicy() (*Policy, error)
func (*CloudIamUpdater) SetResourceIamPolicy ¶
func (u *CloudIamUpdater) SetResourceIamPolicy(policy *Policy) error
type Config ¶
type Config struct { Endpoint string FolderID string CloudID string Zone string Token string ServiceAccountKeyFileOrContent string Plaintext bool Insecure bool MaxRetries int StorageEndpoint string YMQEndpoint string // These storage access keys are optional and only used when // storage data/resource doesn't have own access keys explicitly specified. StorageAccessKey string StorageSecretKey string // These YMQ access keys are optional and only used when // Message Queue resource doesn't have own access keys explicitly specified. YMQAccessKey string YMQSecretKey string // contains filtered or unexported fields }
func (*Config) ContextWithTimeout ¶ added in v0.44.0
this function returns context with client trace id AND timeout
type FolderIamUpdater ¶
type FolderIamUpdater struct { Config *Config // contains filtered or unexported fields }
func (*FolderIamUpdater) DescribeResource ¶
func (u *FolderIamUpdater) DescribeResource() string
func (*FolderIamUpdater) GetMutexKey ¶
func (u *FolderIamUpdater) GetMutexKey() string
func (*FolderIamUpdater) GetResourceID ¶
func (u *FolderIamUpdater) GetResourceID() string
func (*FolderIamUpdater) GetResourceIamPolicy ¶
func (u *FolderIamUpdater) GetResourceIamPolicy() (*Policy, error)
func (*FolderIamUpdater) SetResourceIamPolicy ¶
func (u *FolderIamUpdater) SetResourceIamPolicy(policy *Policy) error
type FunctionIamUpdater ¶ added in v0.44.0
type FunctionIamUpdater struct { Config *Config // contains filtered or unexported fields }
func (*FunctionIamUpdater) DescribeResource ¶ added in v0.44.0
func (u *FunctionIamUpdater) DescribeResource() string
func (*FunctionIamUpdater) GetMutexKey ¶ added in v0.44.0
func (u *FunctionIamUpdater) GetMutexKey() string
func (*FunctionIamUpdater) GetResourceID ¶ added in v0.44.0
func (u *FunctionIamUpdater) GetResourceID() string
func (*FunctionIamUpdater) GetResourceIamPolicy ¶ added in v0.44.0
func (u *FunctionIamUpdater) GetResourceIamPolicy() (*Policy, error)
func (*FunctionIamUpdater) SetResourceIamPolicy ¶ added in v0.44.0
func (u *FunctionIamUpdater) SetResourceIamPolicy(policy *Policy) error
type IndexedUserSpec ¶ added in v0.44.0
type IndexedUserSpec struct {
// contains filtered or unexported fields
}
type MySQLHostSpec ¶ added in v0.44.0
type Policy ¶
type Policy struct {
Bindings []*access.AccessBinding
}
type PostgreSQLHostSpec ¶ added in v0.44.0
type ReducedDiskServiceClient ¶
type ReducedDiskServiceClient interface {
Get(ctx context.Context, in *compute.GetDiskRequest, opts ...grpc.CallOption) (*compute.Disk, error)
}
type ResourceIamUpdater ¶
type ResourceIamUpdater interface { // Fetch the existing IAM policy attached to a resource. GetResourceIamPolicy() (*Policy, error) // Replaces the existing IAM Policy attached to a resource. SetResourceIamPolicy(policy *Policy) error // A mutex guards against concurrent call to the SetResourceIamPolicy method. // The mutex key should be made of the resource type and resource id. // For example: `iam-folder-{id}`. GetMutexKey() string // Returns the unique resource identifier. GetResourceID() string // Textual description of this resource to be used in error message. // The description should include the unique resource identifier. DescribeResource() string }
type S3Website ¶ added in v0.44.0
type S3Website struct {
Endpoint, Domain string
}
func WebsiteEndpoint ¶ added in v0.44.0
type ServiceAccountIamUpdater ¶
type ServiceAccountIamUpdater struct { Config *Config // contains filtered or unexported fields }
func (*ServiceAccountIamUpdater) DescribeResource ¶
func (u *ServiceAccountIamUpdater) DescribeResource() string
func (*ServiceAccountIamUpdater) GetMutexKey ¶
func (u *ServiceAccountIamUpdater) GetMutexKey() string
func (*ServiceAccountIamUpdater) GetResourceID ¶
func (u *ServiceAccountIamUpdater) GetResourceID() string
func (*ServiceAccountIamUpdater) GetResourceIamPolicy ¶
func (u *ServiceAccountIamUpdater) GetResourceIamPolicy() (*Policy, error)
func (*ServiceAccountIamUpdater) SetResourceIamPolicy ¶
func (u *ServiceAccountIamUpdater) SetResourceIamPolicy(policy *Policy) error
Source Files ¶
- config.go
- data_source_yandex_client_config.go
- data_source_yandex_compute_disk.go
- data_source_yandex_compute_image.go
- data_source_yandex_compute_instance.go
- data_source_yandex_compute_instance_group.go
- data_source_yandex_compute_snapshot.go
- data_source_yandex_container_registry.go
- data_source_yandex_dataproc_cluster.go
- data_source_yandex_function.go
- data_source_yandex_function_trigger.go
- data_source_yandex_iam_policy.go
- data_source_yandex_iam_role.go
- data_source_yandex_iam_service_account.go
- data_source_yandex_iam_user.go
- data_source_yandex_iot_core_device.go
- data_source_yandex_iot_core_registry.go
- data_source_yandex_kubernetes_cluster.go
- data_source_yandex_kubernetes_node_group.go
- data_source_yandex_lb_network_load_balancer.go
- data_source_yandex_lb_target_group.go
- data_source_yandex_mdb_clickhouse_cluster.go
- data_source_yandex_mdb_mongodb_cluster.go
- data_source_yandex_mdb_mysql_cluster.go
- data_source_yandex_mdb_postgresql_cluster.go
- data_source_yandex_mdb_redis_cluster.go
- data_source_yandex_message_queue.go
- data_source_yandex_resourcemanager_cloud.go
- data_source_yandex_resourcemanager_folder.go
- data_source_yandex_vpc_address.go
- data_source_yandex_vpc_network.go
- data_source_yandex_vpc_route_table.go
- data_source_yandex_vpc_security_group.go
- data_source_yandex_vpc_subnet.go
- iam.go
- iam_binding.go
- iam_cloud.go
- iam_folder.go
- iam_function.go
- iam_member.go
- iam_policy.go
- iam_service_account.go
- lb_structures.go
- mdb_clickhouse_structures.go
- mdb_mongodb_structures.go
- mdb_mysql_structures.go
- mdb_postgresql_structures.go
- mdb_redis_structures.go
- provider.go
- resource_yandex_compute_disk.go
- resource_yandex_compute_image.go
- resource_yandex_compute_instance.go
- resource_yandex_compute_instance_group.go
- resource_yandex_compute_instance_migrate.go
- resource_yandex_compute_snapshot.go
- resource_yandex_container_registry.go
- resource_yandex_dataproc_cluster.go
- resource_yandex_function.go
- resource_yandex_function_iam_binding.go
- resource_yandex_function_trigger.go
- resource_yandex_iam_service_account.go
- resource_yandex_iam_service_account_api_key.go
- resource_yandex_iam_service_account_iam_binding.go
- resource_yandex_iam_service_account_iam_member.go
- resource_yandex_iam_service_account_iam_policy.go
- resource_yandex_iam_service_account_key.go
- resource_yandex_iam_service_account_static_access_key.go
- resource_yandex_iot_core_device.go
- resource_yandex_iot_core_registry.go
- resource_yandex_kms_secret_ciphertext.go
- resource_yandex_kms_symmetric_key.go
- resource_yandex_kubernetes_cluster.go
- resource_yandex_kubernetes_node_group.go
- resource_yandex_lb_network_load_balancer.go
- resource_yandex_lb_target_group.go
- resource_yandex_mdb_clickhouse_cluster.go
- resource_yandex_mdb_mongodb_cluster.go
- resource_yandex_mdb_mysql_cluster.go
- resource_yandex_mdb_postgresql_cluster.go
- resource_yandex_mdb_redis_cluster.go
- resource_yandex_message_queue.go
- resource_yandex_resourcemanager_cloud_iam_binding.go
- resource_yandex_resourcemanager_cloud_iam_member.go
- resource_yandex_resourcemanager_folder_iam_binding.go
- resource_yandex_resourcemanager_folder_iam_member.go
- resource_yandex_resourcemanager_folder_iam_policy.go
- resource_yandex_storage_bucket.go
- resource_yandex_storage_object.go
- resource_yandex_vpc_address.go
- resource_yandex_vpc_network.go
- resource_yandex_vpc_route_table.go
- resource_yandex_vpc_security_group.go
- resource_yandex_vpc_subnet.go
- storage_client.go
- structures.go
- utils.go
- validators.go
Click to show internal directories.
Click to hide internal directories.