types

package
v0.1.0-beta-3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddCDNClusterToSecurityGroupParams

type AddCDNClusterToSecurityGroupParams struct {
	ID           uint `uri:"id" binding:"required"`
	CDNClusterID uint `uri:"cdn_cluster_id" binding:"required"`
}

type AddCDNToCDNClusterParams

type AddCDNToCDNClusterParams struct {
	ID    uint `uri:"id" binding:"required"`
	CDNID uint `uri:"cdn_id" binding:"required"`
}

type AddSchedulerClusterToCDNClusterParams

type AddSchedulerClusterToCDNClusterParams struct {
	ID                 uint `uri:"id" binding:"required"`
	SchedulerClusterID uint `uri:"scheduler_cluster_id" binding:"required"`
}

type AddSchedulerClusterToSecurityGroupParams

type AddSchedulerClusterToSecurityGroupParams struct {
	ID                 uint `uri:"id" binding:"required"`
	SchedulerClusterID uint `uri:"scheduler_cluster_id" binding:"required"`
}

type AddSchedulerToSchedulerClusterParams

type AddSchedulerToSchedulerClusterParams struct {
	ID          uint `uri:"id" binding:"required"`
	SchedulerID uint `uri:"scheduler_id" binding:"required"`
}

type CDNClusterParams

type CDNClusterParams struct {
	ID uint `uri:"id" binding:"required"`
}

type CDNParams

type CDNParams struct {
	ID uint `uri:"id" binding:"required"`
}

type CreateCDNClusterRequest

type CreateCDNClusterRequest struct {
	Name                string                 `json:"name" binding:"required"`
	BIO                 string                 `json:"bio" binding:"omitempty"`
	Config              map[string]interface{} `json:"config" binding:"required"`
	SecurityGroupDomain string                 `json:"security_group_domain" binding:"omitempty"`
}

type CreateCDNRequest

type CreateCDNRequest struct {
	HostName     string `json:"host_name" binding:"required"`
	IDC          string `json:"idc" binding:"required"`
	Location     string `json:"location" binding:"omitempty"`
	IP           string `json:"ip" binding:"required"`
	Port         int32  `json:"port" binding:"required"`
	DownloadPort int32  `json:"download_port" binding:"required"`
}

type CreateSchedulerClusterRequest

type CreateSchedulerClusterRequest struct {
	Name                string                 `json:"name" binding:"required"`
	BIO                 string                 `json:"bio" binding:"omitempty"`
	Config              map[string]interface{} `json:"config" binding:"required"`
	ClientConfig        map[string]interface{} `json:"client_config" binding:"required"`
	SecurityGroupDomain string                 `json:"security_group_domain" binding:"omitempty"`
}

type CreateSchedulerRequest

type CreateSchedulerRequest struct {
	HostName  string                 `json:"host_name" binding:"required"`
	VIPs      string                 `json:"vips" binding:"omitempty"`
	IDC       string                 `json:"idc" binding:"required"`
	Location  string                 `json:"location" binding:"omitempty"`
	NetConfig map[string]interface{} `json:"net_config" binding:"omitempty"`
	IP        string                 `json:"ip" binding:"required"`
	Port      int32                  `json:"port" binding:"required"`
}

type CreateSecurityGroupRequest

type CreateSecurityGroupRequest struct {
	Name        string `json:"name" binding:"required"`
	BIO         string `json:"bio" binding:"omitempty"`
	Domain      string `json:"domain" binding:"required"`
	ProxyDomain string `json:"proxy_domain" binding:"omitempty"`
}

type GetCDNClustersQuery

type GetCDNClustersQuery struct {
	Name    string `form:"name" binding:"omitempty"`
	Page    int    `form:"page" binding:"omitempty,gte=1"`
	PerPage int    `form:"per_page" binding:"omitempty,gte=1,lte=50"`
}

type GetCDNsQuery

type GetCDNsQuery struct {
	HostName     string `form:"host_name" binding:"omitempty"`
	IDC          string `form:"idc" binding:"omitempty"`
	Location     string `form:"location" binding:"omitempty"`
	IP           string `form:"ip" binding:"omitempty"`
	Port         int32  `form:"port" binding:"omitempty"`
	DownloadPort int32  `form:"download_port" binding:"omitempty"`
	Page         int    `form:"page" binding:"omitempty,gte=1"`
	PerPage      int    `form:"per_page" binding:"omitempty,gte=1,lte=50"`
	Status       string `form:"status" binding:"omitempty,oneof=active inactive"`
}

type GetSchedulerClustersQuery

type GetSchedulerClustersQuery struct {
	Name    string `form:"name" binding:"required"`
	Page    int    `form:"page" binding:"omitempty,gte=1"`
	PerPage int    `form:"per_page" binding:"omitempty,gte=1,lte=50"`
}

type GetSchedulersQuery

type GetSchedulersQuery struct {
	Page     int    `form:"page" binding:"omitempty,gte=1"`
	PerPage  int    `form:"per_page" binding:"omitempty,gte=1,lte=50"`
	HostName string `form:"host_name" binding:"omitempty"`
	IDC      string `form:"idc" binding:"omitempty"`
	Location string `form:"location" binding:"omitempty"`
	IP       string `form:"ip" binding:"omitempty"`
	Status   string `form:"status" binding:"omitempty,oneof=active inactive"`
}

type GetSecurityGroupsQuery

type GetSecurityGroupsQuery struct {
	Page    int    `form:"page" binding:"omitempty,gte=1"`
	PerPage int    `form:"per_page" binding:"omitempty,gte=1,lte=50"`
	Name    string `form:"name" binding:"omitempty"`
	Domain  string `form:"domain" binding:"omitempty"`
}

type LoginRequest

type LoginRequest struct {
	Name     string `form:"name" binding:"required,min=3,max=10"`
	Password string `form:"password" binding:"required,min=12,max=20"`
}

type RegisterRequest

type RegisterRequest struct {
	LoginRequest
	Email    string `form:"email" binding:"required,email"`
	Phone    string `form:"phone" binding:"omitempty"`
	Avatar   string `form:"avatar" binding:"omitempty"`
	Location string `form:"location" binding:"omitempty"`
	Bio      string `form:"bio" binding:"omitempty"`
}

type SchedulerClusterParams

type SchedulerClusterParams struct {
	ID uint `uri:"id" binding:"required"`
}

type SchedulerParams

type SchedulerParams struct {
	ID uint `uri:"id" binding:"required"`
}

type SecurityGroupParams

type SecurityGroupParams struct {
	ID uint `uri:"id" binding:"required"`
}

type UpdateCDNClusterRequest

type UpdateCDNClusterRequest struct {
	Name                string                 `json:"name" binding:"omitempty"`
	BIO                 string                 `json:"bio" binding:"omitempty"`
	Config              map[string]interface{} `json:"config" binding:"omitempty"`
	SecurityGroupDomain string                 `json:"security_group_domain" binding:"omitempty"`
}

type UpdateCDNRequest

type UpdateCDNRequest struct {
	IDC          string `json:"idc" binding:"omitempty"`
	Location     string `json:"location" binding:"omitempty"`
	IP           string `json:"ip" binding:"omitempty"`
	Port         int32  `json:"port" binding:"omitempty"`
	DownloadPort int32  `json:"download_port" binding:"omitempty"`
	CDNID        *uint  `json:"cdn_id" binding:"omitempty"`
}

type UpdateSchedulerClusterRequest

type UpdateSchedulerClusterRequest struct {
	Name                string                 `json:"name" binding:"omitempty"`
	BIO                 string                 `json:"bio" binding:"omitempty"`
	Config              map[string]interface{} `json:"config" binding:"omitempty"`
	ClientConfig        map[string]interface{} `json:"client_config" binding:"omitempty"`
	SecurityGroupDomain string                 `json:"security_group_domain" binding:"omitempty"`
}

type UpdateSchedulerRequest

type UpdateSchedulerRequest struct {
	VIPs        string                 `json:"vips" binding:"omitempty"`
	IDC         string                 `json:"idc" binding:"omitempty"`
	Location    string                 `json:"location" binding:"omitempty"`
	NetConfig   map[string]interface{} `json:"net_config" binding:"omitempty"`
	IP          string                 `json:"ip" binding:"omitempty"`
	Port        int32                  `json:"port" binding:"omitempty"`
	SchedulerID *uint                  `json:"scheduler_id" binding:"omitempty"`
}

type UpdateSecurityGroupRequest

type UpdateSecurityGroupRequest struct {
	Name        string `json:"name" binding:"omitempty"`
	BIO         string `json:"bio" binding:"omitempty"`
	Domain      string `json:"domain" binding:"omitempty"`
	ProxyDomain string `json:"proxy_domain" binding:"omitempty"`
}

Jump to

Keyboard shortcuts

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