Documentation ¶
Index ¶
- Constants
- func GetCloudProviderRC(s *mcclient.ClientSession, id string) (*jsonutils.JSONDict, error)
- type AwsCliRC
- func (cli *AwsCliRC) EC2AssociateIAMInstanceProfile(instanceId string, profileName string) error
- func (cli *AwsCliRC) EC2CreateTags(resource string, tag *Tag) error
- func (cli *AwsCliRC) IAMAddRoleToInstanceProfile(profileName string, roleName string) error
- func (cli *AwsCliRC) IAMAttachRolePolicy(roleName string, policyArn string) error
- func (cli *AwsCliRC) IAMCreateInstanceProfile(profileName string) error
- func (cli *AwsCliRC) IAMCreatePolicy(policyName string, policyContent string, pathName string) (*Policy, error)
- func (cli *AwsCliRC) IAMCreateRole(roleName string, policyContent string) error
- func (cli *AwsCliRC) IAMEnsurePolicy(policyName string, policyContent string, pathName string) (*Policy, error)
- func (cli *AwsCliRC) IAMListPolicies(policyName string, pathPrefix string) ([]Policy, error)
- func (cli *AwsCliRC) IAMPutRolePolicy(roleName string, policyName string, policyContent string) error
- func (ac AwsCliRC) ToEnv() []string
- type ClusterTagValue
- type Policy
- type Tag
Constants ¶
View Source
const ( ClusterTagValueOwned = "owned" )
View Source
const ( ClusterPrefixKey = "kubernetes.io/cluster" SubnetRoleELBKey = "kubernetes.io/role/elb" )
Variables ¶
This section is empty.
Functions ¶
func GetCloudProviderRC ¶
Types ¶
type AwsCliRC ¶
func GetAwsCliRCByProvider ¶
func (*AwsCliRC) EC2AssociateIAMInstanceProfile ¶
func (*AwsCliRC) EC2CreateTags ¶
func (*AwsCliRC) IAMAddRoleToInstanceProfile ¶
func (*AwsCliRC) IAMAttachRolePolicy ¶
func (*AwsCliRC) IAMCreateInstanceProfile ¶
func (*AwsCliRC) IAMCreatePolicy ¶
func (*AwsCliRC) IAMCreateRole ¶
func (*AwsCliRC) IAMEnsurePolicy ¶
func (*AwsCliRC) IAMListPolicies ¶
func (*AwsCliRC) IAMPutRolePolicy ¶
type ClusterTagValue ¶
type ClusterTagValue string
type Policy ¶
type Policy struct { PolicyName string `json:"PolicyName"` PolicyId string `json:"PolicyId"` Arn string `json:"Arn"` Path string `json:"Path"` DefaultVersionId string `json:"DefaultVersionId"` AttachmentCount int `json:"AttachmentCount"` PermissionsBoundaryUsageCount int `json:"PermissionsBoundaryUsageCount"` IsAttachable bool `json:"IsAttachable"` CreateDate time.Time `json:"CreateDate"` UpdateDate time.Time `json:"UpdateDate"` }
Click to show internal directories.
Click to hide internal directories.