yandex

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2019 License: MPL-2.0 Imports: 38 Imported by: 8

Documentation

Index

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 IamMemberBaseSchema = map[string]*schema.Schema{
	"role": {
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
	"member": {
		Type:         schema.TypeString,
		Required:     true,
		ForceNew:     true,
		ValidateFunc: validateIamMember,
	},
}
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": &schema.Schema{
		Type:     schema.TypeString,
		Required: true,
		ForceNew: true,
	},
}

Functions

func Provider

func Provider() terraform.ResourceProvider

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
	ServiceAccountKeyFile string
	Plaintext             bool
	Insecure              bool
	// contains filtered or unexported fields
}

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 Policy

type Policy struct {
	Bindings []*access.AccessBinding
}

func (Policy) String

func (p Policy) String() string

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 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

Jump to

Keyboard shortcuts

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