k8smodel

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2018 License: GPL-3.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8s

type K8s struct {
	Kind       string       `json:"kind"`
	ApiVersion string       `json:"apiVersion"`
	Metadata   K8s_metadata `json:"metadata"`
	Items      []K8s_items  `json:"items"`
}

type K8sDeployment

type K8sDeployment struct {
	Kind       string                 `json:"kind"`
	ApiVersion string                 `json:"apiversion"`
	Metadata   K8sDeployment_metadata `json:"metadata"`
	Spec       K8sDeployment_spec     `json:"spec"`
	Status     K8sDeployment_status   `json:"status"`
}

func K8dUnmarshal

func K8dUnmarshal(data []byte) (*K8sDeployment, error)

K8dUnmarshal 将字符串解析成K8sDeployment对象指针

type K8sDeployment_metadata

type K8sDeployment_metadata struct {
	Name              string                             `json:"name"`
	Namespace         string                             `json:"namespace"`
	SelfLink          string                             `json:"selflink"`
	Uid               string                             `json:"uid"`
	ResourceVersion   string                             `json:"resourceversion"`
	Generation        int                                `json:"generation"`
	CreationTimestamp string                             `json:"creationtimestamp"`
	Labels            K8sDeployment_metadata_labels      `json:"labels"`
	Annotations       K8sDeployment_metadata_annotations `json:"annotations"`
}

type K8sDeployment_metadata_annotations

type K8sDeployment_metadata_annotations struct {
	DeploymentChangecourse         string `json:"deployment.changecourse"`
	DeploymentKubernetesIoRevision string `json:"deployment.kubernetes.io/revision"`
}

type K8sDeployment_metadata_labels

type K8sDeployment_metadata_labels struct {
	Qcloud_app string `json:"qcloud_app"`
}

type K8sDeployment_spec

type K8sDeployment_spec struct {
	Replicas             int                         `json:"replicas"`
	Selector             K8sDeployment_spec_selector `json:"selector"`
	Template             K8sDeployment_spec_template `json:"template"`
	Strategy             K8sDeployment_spec_strategy `json:"strategy"`
	RevisionHistoryLimit int                         `json:"revisionhistorylimit"`
}

type K8sDeployment_spec_selector

type K8sDeployment_spec_selector struct {
	MatchLabels K8sDeployment_spec_selector_matchLabels `json:"matchlabels"`
}

type K8sDeployment_spec_selector_matchLabels

type K8sDeployment_spec_selector_matchLabels struct {
	Qcloud_app string `json:"qcloud_app"`
}

type K8sDeployment_spec_strategy

type K8sDeployment_spec_strategy struct {
	Type          string                                    `json:"type"`
	RollingUpdate K8sDeployment_spec_strategy_rollingUpdate `json:"rollingupdate"`
}

type K8sDeployment_spec_strategy_rollingUpdate

type K8sDeployment_spec_strategy_rollingUpdate struct {
	MaxUnavailable int `json:"maxunavailable"`
	MaxSurge       int `json:"maxsurge"`
}

type K8sDeployment_spec_template

type K8sDeployment_spec_template struct {
	Metadata K8sDeployment_metadata `json:"metadata"`
}

type K8sDeployment_status

type K8sDeployment_status struct {
	ObservedGeneration int                               `json:"observedgeneration"`
	Replicas           int                               `json:"replicas"`
	UpdatedReplicas    int                               `json:"updatedreplicas"`
	ReadyReplicas      int                               `json:"readyreplicas"`
	AvailableReplicas  int                               `json:"availablereplicas"`
	Conditions         []K8sDeployment_status_conditions `json:"conditions"`
}

type K8sDeployment_status_conditions

type K8sDeployment_status_conditions struct {
	Type               string `json:"type"`
	Status             string `json:"status"`
	LastUpdateTime     string `json:"lastupdatetime"`
	LastTransitionTime string `json:"lasttransitiontime"`
	Reason             string `json:"reason"`
	Message            string `json:"message"`
}

type K8sPods

type K8sPods struct {
	Kind       string           `json:"kind"`
	ApiVersion string           `json:"apiversion"`
	Metadata   K8sPods_metadata `json:"metadata"`
	Items      []K8sPods_items  `json:"items"`
}

func K8pUnmarshal

func K8pUnmarshal(data []byte) (*K8sPods, error)

K8pUnmarshal 将字符串解析成K8sDeployment对象指针

type K8sPods_items

type K8sPods_items struct {
	Metadata K8sPods_items_metadata `json:"metadata"`
	Spec     K8sPods_items_spec     `json:"spec"`
	Status   K8sPods_items_status   `json:"status"`
}

type K8sPods_items_metadata

type K8sPods_items_metadata struct {
	Name              string                                   `json:"name"`
	GenerateName      string                                   `json:"generatename"`
	Namespace         string                                   `json:"namespace"`
	SelfLink          string                                   `json:"selflink"`
	Uid               string                                   `json:"uid"`
	ResourceVersion   string                                   `json:"resourceversion"`
	CreationTimestamp string                                   `json:"creationtimestamp"`
	Labels            K8sPods_items_metadata_labels            `json:"labels"`
	Annotations       K8sPods_items_metadata_annotations       `json:"annotations"`
	OwnerReferences   []K8sPods_items_metadata_ownerReferences `json:"ownerreferences"`
}

type K8sPods_items_metadata_annotations

type K8sPods_items_metadata_annotations struct {
	KubernetesIoCreatedBy string `json:"kubernetes.io/created_by"`
}

type K8sPods_items_metadata_labels

type K8sPods_items_metadata_labels struct {
	Pod_template_hash         string `json:"pod_template_hash"`
	Qcloud_app                string `json:"qcloud-app"`
	Qcloud_redeploy_timestamp string `json:"qcloud-redeploy-timestamp"`
}

type K8sPods_items_metadata_ownerReferences

type K8sPods_items_metadata_ownerReferences struct {
	ApiVersion         string `json:"apiversion"`
	Kind               string `json:"kind"`
	Name               string `json:"name"`
	Uid                string `json:"uid"`
	Controller         bool   `json:"controller"`
	BlockOwnerDeletion bool   `json:"blockownerdeletion"`
}

type K8sPods_items_spec

type K8sPods_items_spec struct {
	Volumes                       []K8sPods_items_spec_volumes          `json:"volumes"`
	Containers                    []K8sPods_items_spec_containers       `json:"containers"`
	RestartPolicy                 string                                `json:"restartpolicy"`
	TerminationGracePeriodSeconds int                                   `json:"terminationgraceperiodseconds"`
	DnsPolicy                     string                                `json:"dnspolicy"`
	ServiceAccountName            string                                `json:"serviceaccountname"`
	ServiceAccount                string                                `json:"serviceaccount"`
	NodeName                      string                                `json:"nodename"`
	SecurityContext               K8sPods_items_spec_securityContext    `json:"securitycontext"`
	ImagePullSecrets              []K8sPods_items_spec_imagePullSecrets `json:"imagepullsecrets"`
	SchedulerName                 string                                `json:"schedulername"`
}

type K8sPods_items_spec_containers

type K8sPods_items_spec_containers struct {
	Name                     string `json:"name"`
	Image                    string `json:"image"`
	WorkingDir               string `json:"workingdir"`
	TerminationMessagePath   string `json:"terminationmessagepath"`
	TerminationMessagePolicy string `json:"terminationmessagepolicy"`
	ImagePullPolicy          string `json:"imagepullpolicy"`
}

type K8sPods_items_spec_imagePullSecrets

type K8sPods_items_spec_imagePullSecrets struct {
	Name string `json:"name"`
}

type K8sPods_items_spec_securityContext

type K8sPods_items_spec_securityContext struct {
}

type K8sPods_items_spec_volumes

type K8sPods_items_spec_volumes struct {
	Name string `json:"name"`
}

type K8sPods_items_status

type K8sPods_items_status struct {
	Phase             string                                   `json:"phase"`
	Conditions        []K8sPods_items_status_conditions        `json:"conditions"`
	HostIP            string                                   `json:"hostip"`
	PodIP             string                                   `json:"podip"`
	StartTime         string                                   `json:"starttime"`
	ContainerStatuses []K8sPods_items_status_containerStatuses `json:"containerstatuses"`
	QosClass          string                                   `json:"qosclass"`
}

type K8sPods_items_status_conditions

type K8sPods_items_status_conditions struct {
	Type               string `json:"type"`
	Status             string `json:"status"`
	LastTransitionTime string `json:"lasttransitiontime"`
}

type K8sPods_items_status_containerStatuses

type K8sPods_items_status_containerStatuses struct {
	Name         string `json:"name"`
	Ready        bool   `json:"ready"`
	RestartCount int    `json:"restartcount"`
	Image        string `json:"image"`
	ImageID      string `json:"imageid"`
	ContainerID  string `json:"containerid"`
}

type K8sPods_metadata

type K8sPods_metadata struct {
	SelfLink        string `json:"selflink"`
	ResourceVersion string `json:"resourceversion"`
}

type K8s_items

type K8s_items struct {
	Metadata K8s_items_metadata `json:"metadata"`
	Spec     K8s_items_spec     `json:"spec"`
	Status   K8s_items_status   `json:"status"`
}

type K8s_items_metadata

type K8s_items_metadata struct {
	Name              string                    `json:"name"`
	GenerateName      string                    `json:"generateName"`
	Namespace         string                    `json:"namespace"`
	SelfLink          string                    `json:"selfLink"`
	Uid               string                    `json:"uid"`
	ResourceVersion   string                    `json:"resourceVersion"`
	CreationTimestamp string                    `json:"creationTimestamp"`
	Labels            K8s_items_metadata_labels `json:"labels"`
	//Annotations       K8s_items_metadata_annotations       `json:"annotations"`
	OwnerReferences []K8s_items_metadata_ownerReferences `json:"ownerReferences"`
}

type K8s_items_metadata_annotations

type K8s_items_metadata_annotations struct {
	Kubernetes_Io_Created_by string `json:"kubernetes.io/created_by"`
}

type K8s_items_metadata_labels

type K8s_items_metadata_labels struct {
	Pod_template_hash         string `json:"pod-template-hash"`
	Qcloud_app                string `json:"qcloud-app"`
	Qcloud_redeploy_timestamp string `json:"qcloud-redeploy-timestamp"`
}

type K8s_items_metadata_ownerReferences

type K8s_items_metadata_ownerReferences struct {
	ApiVersion         string `json:"apiVersion"`
	Kind               string `json:"kind"`
	Name               string `json:"name"`
	Uid                string `json:"uid"`
	Controller         bool   `json:"controller"`
	BlockOwnerDeletion bool   `json:"blockOwnerDeletion"`
}

type K8s_items_spec

type K8s_items_spec struct {
	Volumes                       []K8s_items_spec_volumes          `json:"volumes"`
	Containers                    []K8s_items_spec_containers       `json:"containers"`
	RestartPolicy                 string                            `json:"restartpolicy"`
	TerminationGracePeriodSeconds int                               `json:"terminationgraceperiodseconds"`
	DnsPolicy                     string                            `json:"dnspolicy"`
	ServiceAccountName            string                            `json:"serviceaccountname"`
	ServiceAccount                string                            `json:"serviceaccount"`
	NodeName                      string                            `json:"nodename"`
	SecurityContext               K8s_items_spec_securityContext    `json:"securitycontext"`
	ImagePullSecrets              []K8s_items_spec_imagePullSecrets `json:"imagepullsecrets"`
	SchedulerName                 string                            `json:"schedulername"`
}

type K8s_items_spec_containers

type K8s_items_spec_containers struct {
	Name                     string `json:"name"`
	Image                    string `json:"image"`
	WorkingDir               string `json:"workingDir"`
	TerminationMessagePath   string `json:"terminationmessagepath"`
	TerminationMessagePolicy string `json:"terminationmessagepolicy"`
	ImagePullPolicy          string `json:"imagepullpolicy"`
}

type K8s_items_spec_imagePullSecrets

type K8s_items_spec_imagePullSecrets struct {
	Name string `json:"name"`
}

type K8s_items_spec_securityContext

type K8s_items_spec_securityContext struct {
}

type K8s_items_spec_volumes

type K8s_items_spec_volumes struct {
	Name string `json:"name"`
}

type K8s_items_status

type K8s_items_status struct {
	Phase             string                               `json:"phase"`
	Conditions        []K8s_items_status_conditions        `json:"conditions"`
	HostIP            string                               `json:"hostIP"`
	PodIP             string                               `json:"podIP"`
	StartTime         string                               `json:"startTime"`
	ContainerStatuses []K8s_items_status_containerStatuses `json:"containerStatuses"`
	QosClass          string                               `json:"qosClass"`
}

type K8s_items_status_conditions

type K8s_items_status_conditions struct {
	Type               string `json:"type"`
	Status             string `json:"status"`
	LastTransitionTime string `json:"lasttransitiontime"`
}

type K8s_items_status_containerStatuses

type K8s_items_status_containerStatuses struct {
	Name         string `json:"name"`
	Ready        bool   `json:"ready"`
	RestartCount int    `json:"restartcount"`
	Image        string `json:"image"`
	ImageID      string `json:"imageid"`
	ContainerID  string `json:"containerid"`
}

type K8s_metadata

type K8s_metadata struct {
	SelfLink        string `json:"selfLink"`
	ResourceVersion string `json:"resourceVersion"`
}

Jump to

Keyboard shortcuts

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