server_model

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 7 Imported by: 0

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

func (m *Baseline4api) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*Baseline4api) Validate

func (m *Baseline4api) Validate(formats strfmt.Registry) error

Validate validates this baseline4api

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

func (m *BaselineData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*BaselineData) Validate

func (m *BaselineData) Validate(formats strfmt.Registry) error

Validate validates this baseline data

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

func (m *Checker4api) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*Checker4api) Validate

func (m *Checker4api) Validate(formats strfmt.Registry) error

Validate validates this checker4api

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

func (m Cloudtype4api) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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.

func (Cloudtype4api) Validate

func (m Cloudtype4api) Validate(formats strfmt.Registry) error

Validate validates this 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

func (m *ErrorResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*ErrorResponse) Validate

func (m *ErrorResponse) Validate(formats strfmt.Registry) error

Validate validates this error response

type ItemHash

type ItemHash struct {

	// sha256
	Sha256 string `json:"sha256,omitempty"`
}

ItemHash item hash

swagger:model item_hash

func (*ItemHash) ContextValidate

func (m *ItemHash) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this item hash based on context it is used

func (*ItemHash) MarshalBinary

func (m *ItemHash) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ItemHash) UnmarshalBinary

func (m *ItemHash) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ItemHash) Validate

func (m *ItemHash) Validate(formats strfmt.Registry) error

Validate validates this item hash

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

func (m *Listor4api) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*Listor4api) Validate

func (m *Listor4api) Validate(formats strfmt.Registry) error

Validate validates this listor4api

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

func (m *ListorData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*ListorData) Validate

func (m *ListorData) Validate(formats strfmt.Registry) error

Validate validates this listor data

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

func (m *ValidateResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*ValidateResult) Validate

func (m *ValidateResult) Validate(formats strfmt.Registry) error

Validate validates this validate result

Jump to

Keyboard shortcuts

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