containers

package
v0.0.0-...-5ee5e5d Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	ID                 string      `json:"id"`
	HostID             string      `json:"host_id"`
	Name               string      `json:"name"`
	HaveSecrets        bool        `json:"have_secrets"`
	HostName           string      `json:"host_name"`
	HostLname          string      `json:"host_lname"`
	ImageDigest        string      `json:"image_digest"`
	ServerDigest       string      `json:"server_digest"`
	ImageName          string      `json:"image_name"`
	OriginImageName    string      `json:"origin_image_name"`
	OwnerName          string      `json:"owner_name"`
	ImageID            string      `json:"image_id"`
	Status             string      `json:"status"`
	RiskLevel          string      `json:"risk_level"`
	IsEvaluated        bool        `json:"is_evaluated"`
	ValidDigest        bool        `json:"valid_digest"`
	IsProfiling        bool        `json:"is_profiling"`
	IsRegistered       bool        `json:"is_registered"`
	IsDisallowed       bool        `json:"is_disallowed"`
	IsRoot             bool        `json:"is_root"`
	IsPrivileged       bool        `json:"is_privileged"`
	ScanStatus         string      `json:"scan_status"`
	CreateTime         int         `json:"create_time"`
	SystemContainer    bool        `json:"system_container"`
	StartTime          int         `json:"start_time"`
	ModifyTime         int         `json:"modify_time"`
	AquaService        string      `json:"aqua_service"`
	Secrets            interface{} `json:"secrets"`
	Risk               int         `json:"risk"`
	NetworkMode        string      `json:"network_mode"`
	RegistryImageName  string      `json:"registry_image_name"`
	RuntimeProfileName string      `json:"runtime_profile_name"`
	ContainerType      string      `json:"container_type"`
	Total              int         `json:"total"`
	Critical           int         `json:"critical"`
	High               int         `json:"high"`
	Medium             int         `json:"medium"`
	Low                int         `json:"low"`
	Sensitive          int         `json:"sensitive"`
	Malware            int         `json:"malware"`
	Negligible         int         `json:"negligible"`
}

Container is the single container response

type Containers

type Containers struct {
	Count    int         `json:"count"`
	Page     int         `json:"page"`
	Pagesize int         `json:"pagesize"`
	Result   []Container `json:"result"`
}

Containers holds the result of /v1/containers

type DockerLabel

type DockerLabel struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type Inspect

type Inspect struct {
	ID   string   `json:"id"`
	Apps []string `json:"apps"`
	Args []string `json:"args"`
	Host struct {
		ID   string `json:"id"`
		Name string `json:"name"`
	} `json:"host"`
	Name  string `json:"name"`
	User  string `json:"user"`
	Cforg string `json:"cforg"`
	Image struct {
		ID             string `json:"id"`
		Name           string `json:"name"`
		Registry       string `json:"registry"`
		Registered     bool   `json:"registered"`
		RegisterReason string `json:"register_reason"`
	} `json:"image"`
	Links []interface{} `json:"links"`
	Owner struct {
		ID   string `json:"id"`
		UID  string `json:"uid"`
		Name string `json:"name"`
		Type string `json:"type"`
	} `json:"owner"`
	Level2  string        `json:"level2"`
	Level3  string        `json:"level3"`
	Level4  string        `json:"level4"`
	Memory  int           `json:"memory"`
	Status  string        `json:"status"`
	Devices []interface{} `json:"Devices"`
	Network struct {
		Ports struct {
		} `json:"Ports"`
		Bridge   string `json:"Bridge"`
		Gateway  string `json:"Gateway"`
		Networks struct {
		} `json:"Networks"`
		IPAddress              string      `json:"IPAddress"`
		SandboxID              string      `json:"SandboxID"`
		EndpointID             string      `json:"EndpointID"`
		MacAddress             string      `json:"MacAddress"`
		SandboxKey             string      `json:"SandboxKey"`
		HairpinMode            bool        `json:"HairpinMode"`
		IPPrefixLen            int         `json:"IPPrefixLen"`
		IPv6Gateway            string      `json:"IPv6Gateway"`
		GlobalIPv6Address      string      `json:"GlobalIPv6Address"`
		GlobalIPv6PrefixLen    int         `json:"GlobalIPv6PrefixLen"`
		LinkLocalIPv6Address   string      `json:"LinkLocalIPv6Address"`
		SecondaryIPAddresses   interface{} `json:"SecondaryIPAddresses"`
		LinkLocalIPv6PrefixLen int         `json:"LinkLocalIPv6PrefixLen"`
		SecondaryIPv6Addresses interface{} `json:"SecondaryIPv6Addresses"`
	} `json:"Network"`
	CapAdd  []string      `json:"cap_add"`
	Cfspace string        `json:"cfspace"`
	Command []string      `json:"command"`
	Secrets []interface{} `json:"secrets"`
	Volumes []struct {
		Shared        bool   `json:"shared"`
		HostPath      string `json:"host_path"`
		ReadOnly      bool   `json:"read_only"`
		ContainerPath string `json:"container_path"`
	} `json:"volumes"`
	CapDrop  []string `json:"cap_drop"`
	IpcMode  string   `json:"ipc_mode"`
	PidMode  string   `json:"pid_mode"`
	Services []struct {
		ID   int    `json:"id"`
		Name string `json:"name"`
	} `json:"services"`
	UtsMode       string        `json:"uts_mode"`
	Cfappname     string        `json:"cfappname"`
	Cpushares     int           `json:"cpushares"`
	Entrypoint    []string      `json:"entrypoint"`
	Privileged    bool          `json:"privileged"`
	StartTime     int           `json:"start_time"`
	CreateTime    int           `json:"create_time"`
	Description   string        `json:"description"`
	ExtraHosts    []interface{} `json:"extra_hosts"`
	UsernsMode    string        `json:"userns_mode"`
	NetworkMode   string        `json:"network_mode"`
	VolumesFrom   []interface{} `json:"volumes_from"`
	RestartPolicy struct {
		Name              string `json:"Name"`
		MaximumRetryCount int    `json:"MaximumRetryCount"`
	} `json:"RestartPolicy"`
	DockerLabels    json.RawMessage `json:"docker_labels"`
	HealthStatus    string          `json:"health_status"`
	ControllerType  string          `json:"controller_type"`
	ReadonlyRootfs  bool            `json:"readonly_rootfs"`
	ApparmorProfile string          `json:"apparmor_profile"`
	InternalService struct {
		ID   int    `json:"id"`
		Name string `json:"name"`
	} `json:"internal_service"`
	RuntimePolicies      []string      `json:"runtime_policies"`
	RuntimeProfiles      []interface{} `json:"runtime_profiles"`
	SeccompDisabled      bool          `json:"seccomp_disabled"`
	SecurityOptions      []string      `json:"security_options"`
	SystemContainer      bool          `json:"system_container"`
	ModificationTime     int           `json:"modification_time"`
	PublishAllPorts      bool          `json:"publish_all_ports"`
	KubernetesPodName    string        `json:"kubernetes_pod_name"`
	KubernetesPodType    string        `json:"kubernetes_pod_type"`
	EnvironmentVariables []struct {
		Name  string `json:"name"`
		Value string `json:"value"`
	} `json:"environment_variables"`
	KubernetesPodNamespace   string `json:"kubernetes_pod_namespace"`
	KubernetesPodDeployment  string `json:"kubernetes_pod_deployment"`
	KubernetesControllerName string `json:"kubernetes_controller_name"`
	KubernetesControllerType string `json:"kubernetes_controller_type"`
}

Inspect holds a running container's metadata

Jump to

Keyboard shortcuts

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