Documentation
¶
Overview ¶
Package definition: Definition of conf file in yaml format
See github.com/s3studio/cloud-bench-checker/doc/Baseline.md for details
Index ¶
- Constants
- type CloudType
- type ConfAliyunCloudCmd
- type ConfAliyunOSSCmd
- type ConfAzureCmd
- type ConfBaseline
- type ConfChecker
- type ConfConstraint
- type ConfConstraintK8s
- type ConfExtractCmd
- type ConfFile
- type ConfJsonPathCmd
- type ConfK8sListCmd
- type ConfListCmd
- type ConfListor
- type ConfOption
- type ConfPaginator
- type ConfProfile
- type ConfTencentCOSCmd
- type ConfTencentCloudCmd
- type ConfValidator
- type OutputFormat
- type PaginationType
- type ParamType
Constants ¶
View Source
const (
PROFILE_ENV = "$ENV"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfAliyunCloudCmd ¶
type ConfAliyunOSSCmd ¶
type ConfAliyunOSSCmd struct {
Action string `yaml:"action"`
}
type ConfAzureCmd ¶
type ConfBaseline ¶
type ConfBaseline struct {
Tag []string `yaml:"tag"`
Metadata map[string]string `yaml:"metadata"`
Checker []ConfChecker `yaml:"checker"`
}
type ConfChecker ¶
type ConfChecker struct {
CloudType CloudType `yaml:"cloud_type"`
Listor []int `yaml:"listor"`
ExtractCmd ConfExtractCmd `yaml:"extract_cmd"`
Validator ConfValidator `yaml:"validator"`
}
type ConfConstraint ¶ added in v0.2.1
type ConfConstraint struct {
ConstraintK8s ConfConstraintK8s `yaml:"k8s"`
}
type ConfConstraintK8s ¶ added in v0.2.1
type ConfConstraintK8s struct {
Version string `yaml:"version"`
}
type ConfExtractCmd ¶
type ConfExtractCmd struct {
IdJsonPath string `yaml:"id_jsonpath"`
NameJsonPath string `yaml:"name_jsonpath"`
IdConst string `yaml:"id_const"`
NormalizeId bool `yaml:"normalize_id"`
// Way to use id when extracting from cloud
IdParamName string `yaml:"id_param_name"`
IdParamType ParamType `yaml:"id_param_type"`
// Way to extract prop
ExtractJsonPath ConfJsonPathCmd `yaml:"extract_jsonpath"`
TencentCloud ConfTencentCloudCmd `yaml:"tencent_cloud"`
TencentCOS ConfTencentCOSCmd `yaml:"tencent_cos"`
Aliyun ConfAliyunCloudCmd `yaml:"aliyun"`
AliyunOSS ConfAliyunOSSCmd `yaml:"aliyun_oss"`
Azure ConfAzureCmd `yaml:"azure"`
}
type ConfFile ¶
type ConfFile struct {
Option ConfOption `yaml:"option"`
Profile ConfProfile `yaml:"profile"`
Listor []ConfListor `yaml:"listor"`
Baseline []ConfBaseline `yaml:"baseline"`
}
type ConfJsonPathCmd ¶
type ConfJsonPathCmd struct {
Path string `yaml:"path"`
}
type ConfK8sListCmd ¶
type ConfListCmd ¶
type ConfListCmd struct {
TencentCloud ConfTencentCloudCmd `yaml:"tencent_cloud"`
TencentCOS ConfTencentCOSCmd `yaml:"tencent_cos"`
Aliyun ConfAliyunCloudCmd `yaml:"aliyun"`
AliyunOSS ConfAliyunOSSCmd `yaml:"aliyun_oss"`
K8sList ConfK8sListCmd `yaml:"k8s_list"`
Azure ConfAzureCmd `yaml:"azure"`
DataListJsonPath string `yaml:"data_list_json_path"`
ConvertObjectToList bool `yaml:"convert_object_to_list"`
}
type ConfListor ¶
type ConfListor struct {
Id int `yaml:"id"`
CloudType CloudType `yaml:"cloud_type"`
RsType string `yaml:"rs_type"` // Human readable resource type
ListCmd ConfListCmd `yaml:"list_cmd"`
Paginator ConfPaginator `yaml:"paginator"`
Constraint ConfConstraint `yaml:"constraint"`
}
type ConfOption ¶
type ConfPaginator ¶
type ConfPaginator struct {
PaginationType PaginationType `yaml:"pagination_type"`
OffsetType ParamType `yaml:"offset_type"`
OffsetName string `yaml:"offset_name"`
LimitType ParamType `yaml:"limit_type"`
LimitName string `yaml:"limit_name"`
RespTotalName string `yaml:"resp_total_name"`
MarkerName string `yaml:"marker_name"`
NextMarkerName string `yaml:"next_marker_name"`
TruncatedName string `yaml:"truncated_name"`
}
type ConfProfile ¶
type ConfTencentCOSCmd ¶
type ConfTencentCloudCmd ¶
type ConfValidator ¶
type OutputFormat ¶
type OutputFormat string
const ( OUTPUT_FORMAT_CSV OutputFormat = "csv" OUTPUT_FORMAT_JSON OutputFormat = "json" )
type PaginationType ¶
type PaginationType int
const ( PAGEINATION_DEFAULT PaginationType = 0 PAGE_OFFSET_LIMIT PaginationType = 1 PAGE_CURPAGE_SIZE PaginationType = 2 PAGE_NOPAGEINATION PaginationType = 3 PAGE_MARKER PaginationType = 4 )
Click to show internal directories.
Click to hide internal directories.