Documentation ¶
Index ¶
- Constants
- func ActionTrailService(ctx context.Context, d *plugin.QueryData) (*actiontrail.Client, error)
- func AliDNSService(ctx context.Context, d *plugin.QueryData) (*alidns.Client, error)
- func AutoscalingService(ctx context.Context, d *plugin.QueryData) (*ess.Client, error)
- func BuildRegionList(_ context.Context, d *plugin.QueryData) []map[string]interface{}
- func CasService(ctx context.Context, d *plugin.QueryData, region string) (*cas.Client, error)
- func CmsService(ctx context.Context, d *plugin.QueryData) (*cms.Client, error)
- func ConfigInstance() interface{}
- func ContainerService(ctx context.Context, d *plugin.QueryData) (*cs.Client, error)
- func ECSRegionService(ctx context.Context, d *plugin.QueryData, region string) (*ecs.Client, error)
- func ECSService(ctx context.Context, d *plugin.QueryData) (*ecs.Client, error)
- func GetBoolQualValue(quals plugin.KeyColumnQualMap, columnName string) (value *bool, exists bool)
- func GetConfig(connection *plugin.Connection) alicloudConfig
- func GetDefaultRegion(connection *plugin.Connection) string
- func GetStringQualValue(quals plugin.KeyColumnQualMap, columnName string) (value *string, exists bool)
- func GetStringQualValueList(quals plugin.KeyColumnQualMap, columnName string) (values []string, exists bool)
- func KMSService(ctx context.Context, d *plugin.QueryData) (*kms.Client, error)
- func OssService(ctx context.Context, d *plugin.QueryData, region string) (*oss.Client, error)
- func Plugin(ctx context.Context) *plugin.Plugin
- func RAMService(ctx context.Context, d *plugin.QueryData) (*ram.Client, error)
- func RDSService(ctx context.Context, d *plugin.QueryData, region string) (*rds.Client, error)
- func SLBService(ctx context.Context, d *plugin.QueryData) (*slb.Client, error)
- func SecurityCenterService(ctx context.Context, d *plugin.QueryData, region string) (*sas.Client, error)
- func StsService(ctx context.Context, d *plugin.QueryData) (*sts.Client, error)
- func VpcService(ctx context.Context, d *plugin.QueryData) (*vpc.Client, error)
- type CMMetricRow
- type CaseSensitiveValue
- type CredentialConfig
- type FieldInfo
- type GetCredentialReportResponse
- type NodeInfo
- type Policy
- type Principal
- type QueryFilterItem
- type QueryFilters
- type Statement
- type Statements
- type Value
Constants ¶
const ( ColumnDescriptionAkas = "Array of globally unique identifier strings (also known as) for the resource." ColumnDescriptionTags = "A map of tags for the resource." ColumnDescriptionTitle = "Title of the resource." ColumnDescriptionAccount = "The Alicloud Account ID in which the resource is located." ColumnDescriptionRegion = "The Alicloud region in which the resource is located." )
Constants for Standard Column Descriptions
Variables ¶
This section is empty.
Functions ¶
func ActionTrailService ¶ added in v0.0.9
ActionTrailService returns the service connection for Alicloud ActionTrail service
func AliDNSService ¶ added in v1.1.0
AliDNSService returns the service connection for Alicloud DNS service
func AutoscalingService ¶ added in v0.0.2
AutoscalingService returns the service connection for Alicloud Autoscaling service
func BuildRegionList ¶
BuildRegionList :: return a list of matrix items, one per region specified in the connection config
func CasService ¶ added in v0.0.9
CasService returns the service connection for Alicloud SSL service
func CmsService ¶ added in v0.0.13
CmsService returns the service connection for Alicloud CMS service
func ConfigInstance ¶
func ConfigInstance() interface{}
func ContainerService ¶ added in v0.0.10
ContainerService returns the service connection for Alicloud Container service
func ECSRegionService ¶ added in v0.1.0
ECSRegionService returns the service connection for Alicloud ECS Region service
func ECSService ¶
ECSService returns the service connection for Alicloud ECS service
func GetBoolQualValue ¶ added in v0.2.0
func GetBoolQualValue(quals plugin.KeyColumnQualMap, columnName string) (value *bool, exists bool)
func GetConfig ¶
func GetConfig(connection *plugin.Connection) alicloudConfig
GetConfig :: retrieve and cast connection config from query data
func GetDefaultRegion ¶
func GetDefaultRegion(connection *plugin.Connection) string
GetDefaultRegion returns the default region used
func GetStringQualValue ¶ added in v0.2.0
func GetStringQualValue(quals plugin.KeyColumnQualMap, columnName string) (value *string, exists bool)
GetStringQualValue :: Can be used to get equal value
func GetStringQualValueList ¶ added in v0.2.0
func GetStringQualValueList(quals plugin.KeyColumnQualMap, columnName string) (values []string, exists bool)
GetStringQualValueList :: Can be used to get equal value as a list of strings supports only equal operator
func KMSService ¶ added in v0.0.3
KMSService returns the service connection for Alicloud KMS service
func OssService ¶
OssService returns the service connection for Alicloud OSS service
func RAMService ¶
RAMService returns the service connection for Alicloud RAM service
func RDSService ¶ added in v0.0.3
RDSService returns the service connection for Alicloud RDS service
func SLBService ¶ added in v0.14.0
SLBService returns the service connection for Alicloud Server Load Balancer service
func SecurityCenterService ¶ added in v0.0.12
func SecurityCenterService(ctx context.Context, d *plugin.QueryData, region string) (*sas.Client, error)
SecurityCenterService returns the service connection for Alicloud Security Center service
func StsService ¶
StsService returns the service connection for Alicloud STS service
Types ¶
type CMMetricRow ¶ added in v0.0.14
type CMMetricRow struct { // The (single) metric Dimension name DimensionName string // The value for the (single) metric Dimension DimensionValue string // The namespace of the metric Namespace string // The name of the metric MetricName string // The average of the metric values that correspond to the data point. Average float64 // The maximum metric value for the data point. Maximum float64 // The minimum metric value for the data point. Minimum float64 // The timestamp used for the data point. Timestamp string }
type CaseSensitiveValue ¶ added in v0.0.4
type CaseSensitiveValue []string
CaseSensitiveValue is used for value arrays that care about case ALICLOUD allows string or []string as value, we convert everything to []string to avoid casting. We also sort these - order does not matter for arrays/lists in RAM policies, so we sort them for easier diffing and remove duplicates since they're ignored anyway
func (*CaseSensitiveValue) UnmarshalJSON ¶ added in v0.0.4
func (value *CaseSensitiveValue) UnmarshalJSON(b []byte) error
UnmarshalJSON for the CaseSensitiveValue struct
type CredentialConfig ¶ added in v0.23.0
type CredentialConfig struct { Creds auth.Credential DefaultRegion string Config *sdk.Config }
Credential configuration
type FieldInfo ¶ added in v0.0.12
type FieldInfo struct { sas.GroupedFields Region string }
type GetCredentialReportResponse ¶ added in v1.1.0
type GetCredentialReportResponse struct { RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty" require:"true"` Content *string `json:"Content,omitempty" xml:"Content,omitempty" require:"true"` GeneratedTime *string `json:"GeneratedTime,omitempty" xml:"GeneratedTime,omitempty" require:"true"` }
type Policy ¶ added in v0.0.4
type Policy struct { Id string `json:"Id,omitempty"` // Optional, case sensitive Statements Statements `json:"Statement"` // Required, array of Statements or single statement Version string `json:"Version"` // Required, version date string }
Policy represents an RAM Policy document It would be nice if we could sort the fields (json keys) but postgres jsonb "does not preserve the order of object keys", per https://www.postgresql.org/docs/9.4/datatype-json.html
type Principal ¶ added in v0.0.4
type Principal map[string]interface{}
Principal may be string '*' or a map of principaltype:value. If '*', we add as an array element to the Alicloud principal type. Each value in the map may be a string or []string, we convert everything to []string and sort it and remove duplicates
func (*Principal) UnmarshalJSON ¶ added in v0.0.4
UnmarshalJSON for the Principal struct
type QueryFilterItem ¶ added in v0.2.0
type QueryFilters ¶ added in v0.2.0
type QueryFilters []QueryFilterItem
QueryFilters is an array of filters items
func (*QueryFilters) String ¶ added in v0.2.0
func (filters *QueryFilters) String() (string, error)
To get the stringified value of QueryFilters
type Statement ¶ added in v0.0.4
type Statement struct { Action Value `json:"Action,omitempty"` // Optional, string or array of strings, case insensitive Condition map[string]interface{} `json:"Condition,omitempty"` // Optional, map of conditions Effect string `json:"Effect"` // Required, Allow or Deny, case sensitive NotAction Value `json:"NotAction,omitempty"` // Optional, string or array of strings, case insensitive NotPrincipal Principal `json:"NotPrincipal,omitempty"` // Optional, string (*) or map of strings/arrays NotResource CaseSensitiveValue `json:"NotResource,omitempty"` // Optional, string or array of strings, case sensitive Principal Principal `json:"Principal,omitempty"` // Optional, string (*) or map of strings/arrays Resource CaseSensitiveValue `json:"Resource,omitempty"` // Optional, string or array of strings, case sensitive Sid string `json:"Sid,omitempty"` // Optional, case sensitive }
Statement represents a Statement in an RAM Policy. It would be nice if we could sort the fields (json keys) but postgres jsonb "does not preserve the order of object keys", per https://www.postgresql.org/docs/9.4/datatype-json.html
func (*Statement) UnmarshalJSON ¶ added in v0.0.4
UnmarshalJSON for the Statement struct
type Statements ¶ added in v0.0.4
type Statements []Statement
Statements is an array of statements from an RAM policy
func (*Statements) UnmarshalJSON ¶ added in v0.0.4
func (statement *Statements) UnmarshalJSON(b []byte) error
UnmarshalJSON for the Policy struct. A policy can contain a single Statement or an array of statements, we always convert to array. Currently, we do not sort these but we probably should....
type Value ¶ added in v0.0.4
type Value []string
Value is an ALICLOUD RAM value string or array. ALICLOUD allows string or []string as value, we convert everything to []string to avoid casting. We also sort these - order does not matter for arrays/lists in RAM policies, so we sort them for easier diffing, and remove duplicates since they're ignored anyway
func (*Value) UnmarshalJSON ¶ added in v0.0.4
UnmarshalJSON for the Value struct
Source Files ¶
- canonical_policy.go
- common_columns.go
- connection_config.go
- errors.go
- monitoring_metric.go
- multi_region.go
- plugin.go
- service.go
- table_alicloud_account.go
- table_alicloud_action_trail.go
- table_alicloud_alidns_domain.go
- table_alicloud_cas_certificate.go
- table_alicloud_cms_monitor_host.go
- table_alicloud_cs_kubernetes_cluster.go
- table_alicloud_cs_kubernetes_cluster_node.go
- table_alicloud_ecs_auto_provisioning_group.go
- table_alicloud_ecs_autoscaling_group.go
- table_alicloud_ecs_disk.go
- table_alicloud_ecs_disk_metric_read_iops.go
- table_alicloud_ecs_disk_metric_read_iops_daily.go
- table_alicloud_ecs_disk_metric_read_iops_hourly.go
- table_alicloud_ecs_disk_metric_write_iops.go
- table_alicloud_ecs_disk_metric_write_iops_daily.go
- table_alicloud_ecs_disk_metric_write_iops_hourly.go
- table_alicloud_ecs_image.go
- table_alicloud_ecs_instance.go
- table_alicloud_ecs_instance_metric_cpu_utilization_daily.go
- table_alicloud_ecs_instance_metric_cpu_utilization_hourly.go
- table_alicloud_ecs_key_pair.go
- table_alicloud_ecs_luanch_template.go
- table_alicloud_ecs_network_interface.go
- table_alicloud_ecs_region.go
- table_alicloud_ecs_security_group.go
- table_alicloud_ecs_snapshot.go
- table_alicloud_ecs_zone.go
- table_alicloud_kms_key.go
- table_alicloud_kms_secret.go
- table_alicloud_oss_bucket.go
- table_alicloud_ram_access_key.go
- table_alicloud_ram_credential_report.go
- table_alicloud_ram_group.go
- table_alicloud_ram_password_policy.go
- table_alicloud_ram_policy.go
- table_alicloud_ram_role.go
- table_alicloud_ram_security_preference.go
- table_alicloud_ram_user.go
- table_alicloud_rds_backup.go
- table_alicloud_rds_database.go
- table_alicloud_rds_instance.go
- table_alicloud_rds_instance_metric_connections.go
- table_alicloud_rds_instance_metric_connections_daily.go
- table_alicloud_rds_instance_metric_cpu_utilization.go
- table_alicloud_rds_instance_metric_cpu_utilization_daily.go
- table_alicloud_rds_instance_metric_cpu_utilization_hourly.go
- table_alicloud_security_center_field_statistics.go
- table_alicloud_security_center_version.go
- table_alicloud_slb_load_balancer.go
- table_alicloud_vpc.go
- table_alicloud_vpc_dhcp_options_set.go
- table_alicloud_vpc_eip.go
- table_alicloud_vpc_flow_log.go
- table_alicloud_vpc_nat_gateway.go
- table_alicloud_vpc_network_acl.go
- table_alicloud_vpc_route_entry.go
- table_alicloud_vpc_route_table.go
- table_alicloud_vpc_ssl_vpn_client_cert.go
- table_alicloud_vpc_ssl_vpn_server.go
- table_alicloud_vpc_vpn_connection.go
- table_alicloud_vpc_vpn_customer_gateway.go
- table_alicloud_vpc_vpn_gateway.go
- table_alicloud_vpc_vswitch.go
- utils.go