Documentation
¶
Overview ¶
Package server_model: Code generated by go-swagger for apiserver
The code is placed in the /pkg directory in case that some customization development via the API of apiserver requires definitions of these models.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Baseline4api ¶
type Baseline4api struct {
// checker
Checker []*Checker4api `json:"checker"`
// hash
Hash *ItemHash `json:"hash,omitempty"`
// id
ID int64 `json:"id,omitempty"`
// metadata
Metadata map[string]string `json:"metadata,omitempty"`
// tag
Tag []string `json:"tag"`
// yaml
Yaml string `json:"yaml,omitempty"`
// yaml hidden
YamlHidden bool `json:"yaml_hidden"`
}
Baseline4api baseline4api
swagger:model baseline4api
func (*Baseline4api) ContextValidate ¶
ContextValidate validate this baseline4api based on the context it is used
func (*Baseline4api) MarshalBinary ¶
func (m *Baseline4api) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Baseline4api) UnmarshalBinary ¶
func (m *Baseline4api) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type BaselineData ¶
type BaselineData struct {
// baseline hash
BaselineHash *ItemHash `json:"baseline_hash,omitempty"`
// checker prop
CheckerProp []string `json:"checker_prop"`
// id
ID int64 `json:"id,omitempty"`
}
BaselineData baseline data
swagger:model baseline_data
func (*BaselineData) ContextValidate ¶
ContextValidate validate this baseline data based on the context it is used
func (*BaselineData) MarshalBinary ¶
func (m *BaselineData) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BaselineData) UnmarshalBinary ¶
func (m *BaselineData) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Checker4api ¶
type Checker4api struct {
// cloud type
CloudType Cloudtype4api `json:"cloud_type,omitempty"`
// listor
Listor []int64 `json:"listor"`
}
Checker4api checker4api
swagger:model checker4api
func (*Checker4api) ContextValidate ¶
ContextValidate validate this checker4api based on the context it is used
func (*Checker4api) MarshalBinary ¶
func (m *Checker4api) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Checker4api) UnmarshalBinary ¶
func (m *Checker4api) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Cloudtype4api ¶
type Cloudtype4api string
Cloudtype4api cloudtype4api
swagger:model cloudtype4api
const ( // Cloudtype4apiTencentCloud captures enum value "tencent_cloud" Cloudtype4apiTencentCloud Cloudtype4api = "tencent_cloud" // Cloudtype4apiTencentCos captures enum value "tencent_cos" Cloudtype4apiTencentCos Cloudtype4api = "tencent_cos" // Cloudtype4apiAliyun captures enum value "aliyun" Cloudtype4apiAliyun Cloudtype4api = "aliyun" // Cloudtype4apiAliyunOss captures enum value "aliyun_oss" Cloudtype4apiAliyunOss Cloudtype4api = "aliyun_oss" // Cloudtype4apiK8s captures enum value "k8s" Cloudtype4apiK8s Cloudtype4api = "k8s" // Cloudtype4apiAzure captures enum value "azure" Cloudtype4apiAzure Cloudtype4api = "azure" )
func NewCloudtype4api ¶
func NewCloudtype4api(value Cloudtype4api) *Cloudtype4api
func (Cloudtype4api) ContextValidate ¶
ContextValidate validates this cloudtype4api based on context it is used
func (Cloudtype4api) Pointer ¶
func (m Cloudtype4api) Pointer() *Cloudtype4api
Pointer returns a pointer to a freshly-allocated Cloudtype4api.
type ErrorResponse ¶
type ErrorResponse struct {
// code
Code int64 `json:"code,omitempty"`
// data
Data interface{} `json:"data,omitempty"`
// msg
Msg string `json:"msg,omitempty"`
}
ErrorResponse error response
swagger:model error_response
func (*ErrorResponse) ContextValidate ¶
ContextValidate validates this error response based on context it is used
func (*ErrorResponse) MarshalBinary ¶
func (m *ErrorResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ErrorResponse) UnmarshalBinary ¶
func (m *ErrorResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ItemHash ¶
type ItemHash struct {
// sha256
Sha256 string `json:"sha256,omitempty"`
}
ItemHash item hash
swagger:model item_hash
func (*ItemHash) ContextValidate ¶
ContextValidate validates this item hash based on context it is used
func (*ItemHash) MarshalBinary ¶
MarshalBinary interface implementation
func (*ItemHash) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Listor4api ¶
type Listor4api struct {
// cloud type
CloudType Cloudtype4api `json:"cloud_type,omitempty"`
// hash
Hash *ItemHash `json:"hash,omitempty"`
// id
ID int64 `json:"id,omitempty"`
// rs type
RsType string `json:"rs_type,omitempty"`
// yaml
Yaml string `json:"yaml,omitempty"`
// yaml hidden
YamlHidden bool `json:"yaml_hidden"`
}
Listor4api listor4api
swagger:model listor4api
func (*Listor4api) ContextValidate ¶
ContextValidate validate this listor4api based on the context it is used
func (*Listor4api) MarshalBinary ¶
func (m *Listor4api) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Listor4api) UnmarshalBinary ¶
func (m *Listor4api) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListorData ¶
type ListorData struct {
// cloud type
CloudType Cloudtype4api `json:"cloud_type,omitempty"`
// data
Data string `json:"data,omitempty"`
// listor hash
ListorHash *ItemHash `json:"listor_hash,omitempty"`
// listor id
ListorID int64 `json:"listor_id,omitempty"`
}
ListorData listor data
swagger:model listor_data
func (*ListorData) ContextValidate ¶
ContextValidate validate this listor data based on the context it is used
func (*ListorData) MarshalBinary ¶
func (m *ListorData) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListorData) UnmarshalBinary ¶
func (m *ListorData) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ValidateResult ¶
type ValidateResult struct {
// actual value
ActualValue string `json:"actual_value"`
// cloud type
CloudType string `json:"cloud_type"`
// metadata
Metadata map[string]string `json:"metadata,omitempty"`
// resource id
ResourceID string `json:"resource_id"`
// resource in risk
ResourceInRisk bool `json:"resource_in_risk"`
// resource name
ResourceName string `json:"resource_name"`
}
ValidateResult validate result
swagger:model validate_result
func (*ValidateResult) ContextValidate ¶
ContextValidate validates this validate result based on context it is used
func (*ValidateResult) MarshalBinary ¶
func (m *ValidateResult) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ValidateResult) UnmarshalBinary ¶
func (m *ValidateResult) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation