TestData

package
v0.0.0-...-62aa942 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliaseInt

type AliaseInt int

type Annotations

type Annotations map[string]string

type ConfigMap

type ConfigMap struct {
	Volumes []struct {
		Name      string `json:"name"`
		MountPath string `json:"mountPath"`

		Data *map[string]string `json:"data"`
		// contains filtered or unexported fields
	} `json:"volumes"`
}

type Expose

type Expose struct {
	Port []int  `json:"port"`
	Type string `json:"type"`
}

type Form

type Form struct {
	Name  string `json:"name" ngform:"title=邮箱,format=id-card"`
	Age   int    `json:"age"`
	Notes []struct {
		Node string `json:"node"`
	} `json:"notes" ngform:"title=笔记"`
}

type HealthProbe

type HealthProbe struct {
	Exec    *[]string `json:"exec"`
	HttpGet *struct {
		Path        string `json:"path"`
		Port        string `json:"port"`
		HttpHeaders *[]struct {
			Name  string
			Value string
		} `json:"httpHeaders"`
	} `json:"httpGet"`
	TcpSocket *struct {
		Port int `json:"port"`
	} `json:"tcpSocket"`
	InitialDelaySeconds int `json:"initialDelaySeconds"`
	PeriodSeconds       int `json:"periodSeconds"`
	TimeoutSeconds      int `json:"timeoutSeconds"`
	SuccessThreshold    int `json:"successThreshold"`
	FailureThreshold    int `json:"failureThreshold"`
}

type InitContainer

type InitContainer struct {
	Name          string    `json:"name"`
	Image         string    `json:"image"`
	Cmd           *[]string `json:"cmd"`
	Args          *[]string `json:"args"`
	MountName     string    `json:"mountName"`
	AppMountPath  string    `json:"appMountPath"`
	InitMountPath string    `json:"initMountPath"`
}

type K8sDeploy

type K8sDeploy struct {
	Result  v1.Deployment  `json:"result"`
	Service v1.StatefulSet `json:"service"`
}

type K8sKey

type K8sKey struct {
	Namespace string `json:"namespace,omitempty" uri:"namespace"`
	Name      string `json:"name,omitempty" uri:"name"`
}

type Labels

type Labels map[string]string

type MyEnv

type MyEnv struct {
}

type MyPorts

type MyPorts struct {
	Ports []struct {
		ContainerPort int    `json:"containerPort"`
		Ptotocol      string `json:"ptotocol"`
	} `json:"ports"`
}

type Pvc

type Pvc struct {
	ClaimName        string   `json:"claimName"`
	VolumeMode       string   `json:"volumeMode"`
	VolumeName       *string  `json:"volumeName"`
	AccessModes      []string `json:"accessModes"`
	StorageClassName *string  `json:"storageClassName"`
	Resources        struct {
		Requests string `json:"requests"`
		Limits   string `json:"limits"`
	} `json:"resources"`

	VolumesToMount []struct {
		Name       string `json:"name"`
		DevicePath string `json:"devicePath"`
		MountPath  string `json:"mountPath"`
	} `json:"volumesToMount"`
}

type Scaler

type Scaler struct {
	Replicas int `json:"replicas"`
}

type Sidecar

type Sidecar struct {
	Name    string    `json:"name"`
	Image   string    `json:"image"`
	Cmd     *[]string `json:"cmd"`
	Args    *[]string `json:"args"`
	Volumes *[]struct {
		Name string `json:"name"`
		Path string `json:"path"`
	} `json:"volumes"`
}

type Test1T

type Test1T []nest.Nest

type TraitIngress

type TraitIngress struct {
	Domain string         `json:"domain"`
	Http   map[string]int `json:"http"`
}

type User

type User struct {
	ID    int `json:"id"`
	Age   int `json:"age"`
	Name  string
	Nest  []nest.Nest          `json:"nest"`
	M     map[string]nest.Nest `json:"m"`
	Fater nest.Fater           `json:"fater"`
	Time  time.Time            `json:"time"`
}

type UserIncludes

type UserIncludes struct {
	// Association query Multiple choice:
	// role_binding
	// alert
	Includes []string `form:"includes" json:"includes" binding:"dive,oneof=role_binding alert"`
}

type UserResult

type UserResult struct {
	//Code AliaseInt                 `json:"code"`
	Data      map[string]nest.Nest      `json:"data"`
	M         map[nest.Fater]nest.Fater `json:"m"`
	N         nest.Nest                 `json:"n"`
	Err       interface{}               `json:"err"`
	User      []*User                   `json:"user"`
	AliaseInt `json:"aint"`
	UserIncludes
	//this is nest
	nest.Nest
	// this is fater
	nest.Fater
}

type Worker

type Worker struct {
	Metadata  K8sKey          `json:"metadata"`
	Component WorkerComponent `json:"component"`
	Next      nest.Nest
}

type WorkerComponent

type WorkerComponent struct {
	Properties struct {
		Image            string    `json:"image"`
		ImagePullPolicy  *string   `json:"imagePullPolicy,omitempty"`
		ImagePullSecrets *string   `json:"imagePullSecrets,omitempty"`
		Cmd              *[]string `json:"cmd,omitempty"`
		Env              *[]struct {
			Name  string `json:"name"`
			Value string `json:"value"`
		} `json:"env,omitempty"`
		Cpu    *string `json:"cpu,omitempty"`
		Memory *string `json:"memory,omitempty"`

		Volumes *[]struct {
			Name      string `json:"name"`
			MountPath string `json:"mountPath"`
			Type      string `json:"type"`
		} `json:"volumes,omitempty"`

		LivenessProbe  *HealthProbe `json:"livenessProbe,omitempty"`
		ReadinessProbe *HealthProbe `json:"readinessProbe,omitempty"`
	} `json:"properties"`

	Traits struct {
		Ingress       *TraitIngress  `json:"ingress,omitempty"`
		Labels        *Labels        `json:"labels,omitempty"`
		Annotations   *Annotations   `json:"annotations,omitempty"`
		Sidecar       *Sidecar       `json:"sidecar,omitempty"`
		Expose        *Expose        `json:"expose,omitempty"`
		InitContainer *InitContainer `json:"initContainer,omitempty"`
		ConfigMap     *ConfigMap     `json:"configMap,omitempty"`
		Pvc           *Pvc           `json:"pvc,omitempty"`
		Scaler        *Scaler        `json:"scaler,omitempty"`
		Ports         *MyPorts       `json:"ports,omitempty"`
		MyEnv         *MyEnv         `json:"myEnv,omitempty"`
		Test          *struct{}      `json:"test,omitempty"`
	} `json:"traits,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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