alicloud

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

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

func ActionTrailService(ctx context.Context, d *plugin.QueryData) (*actiontrail.Client, error)

ActionTrailService returns the service connection for Alicloud ActionTrail service

func AutoscalingService added in v0.0.2

func AutoscalingService(ctx context.Context, d *plugin.QueryData) (*ess.Client, error)

AutoscalingService returns the service connection for Alicloud Autoscaling service

func BuildRegionList

func BuildRegionList(_ context.Context, d *plugin.QueryData) []map[string]interface{}

BuildRegionList :: return a list of matrix items, one per region specified in the connection config

func CasService added in v0.0.9

func CasService(ctx context.Context, d *plugin.QueryData, region string) (*cas.Client, error)

CasService returns the service connection for Alicloud SSL service

func CmsService added in v0.0.13

func CmsService(ctx context.Context, d *plugin.QueryData) (*cms.Client, error)

CmsService returns the service connection for Alicloud CMS service

func ConfigInstance

func ConfigInstance() interface{}

func ContainerService added in v0.0.10

func ContainerService(ctx context.Context, d *plugin.QueryData) (*cs.Client, error)

ContainerService returns the service connection for Alicloud Container service

func ECSRegionService added in v0.1.0

func ECSRegionService(ctx context.Context, d *plugin.QueryData, region string) (*ecs.Client, error)

ECSRegionService returns the service connection for Alicloud ECS Region service

func ECSService

func ECSService(ctx context.Context, d *plugin.QueryData) (*ecs.Client, error)

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 IMSService added in v0.0.4

func IMSService(ctx context.Context, d *plugin.QueryData) (*ims.Client, error)

IMSService returns the service connection for Alicloud IMS service

func KMSService added in v0.0.3

func KMSService(ctx context.Context, d *plugin.QueryData) (*kms.Client, error)

KMSService returns the service connection for Alicloud KMS service

func OssService

func OssService(ctx context.Context, d *plugin.QueryData, region string) (*oss.Client, error)

OssService returns the service connection for Alicloud OSS service

func Plugin

func Plugin(ctx context.Context) *plugin.Plugin

Plugin creates this (alicloud) plugin

func RAMService

func RAMService(ctx context.Context, d *plugin.QueryData) (*ram.Client, error)

RAMService returns the service connection for Alicloud RAM service

func RDSService added in v0.0.3

func RDSService(ctx context.Context, d *plugin.QueryData, region string) (*rds.Client, error)

RDSService returns the service connection for Alicloud RDS service

func SLBService added in v0.14.0

func SLBService(ctx context.Context, d *plugin.QueryData) (*slb.Client, error)

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

func StsService(ctx context.Context, d *plugin.QueryData) (*sts.Client, error)

StsService returns the service connection for Alicloud STS service

func VpcService

func VpcService(ctx context.Context, d *plugin.QueryData) (*vpc.Client, error)

VpcService returns the service connection for Alicloud VPC 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 FieldInfo added in v0.0.12

type FieldInfo struct {
	sas.GroupedFields
	Region string
}

type NodeInfo added in v0.10.0

type NodeInfo struct {
	ClusterId string
	cs.Node
}

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

func (principal *Principal) UnmarshalJSON(b []byte) error

UnmarshalJSON for the Principal struct

type QueryFilterItem added in v0.2.0

type QueryFilterItem struct {
	Key    string
	Values []string
}

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

func (statement *Statement) UnmarshalJSON(b []byte) error

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

func (value *Value) UnmarshalJSON(b []byte) error

UnmarshalJSON for the Value struct

Source Files

Jump to

Keyboard shortcuts

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