istio: istio.io/istio/pkg/kube/apimirror Index | Files

package apimirror

import "istio.io/istio/pkg/kube/apimirror"

apimirror contains copies of Kubernetes APIs. This allows json serialization, without worrying about importing the massive 15mb+ Kubernetes API libraries. This is intended for import only by istio-agent. Any other binaries (Istiod) should likely import the upstream Kubernetes API instead.

Index

Package Files

probe.go

type HTTPGetAction Uses

type HTTPGetAction struct {
    // Path to access on the HTTP server.
    // +optional
    Path string `json:"path,omitempty" protobuf:"bytes,1,opt,name=path"`
    // Name or number of the port to access on the container.
    // Number must be in the range 1 to 65535.
    // Name must be an IANA_SVC_NAME.
    Port intstr.IntOrString `json:"port" protobuf:"bytes,2,opt,name=port"`
    // Host name to connect to, defaults to the pod IP. You probably want to set
    // "Host" in httpHeaders instead.
    // +optional
    Host string `json:"host,omitempty" protobuf:"bytes,3,opt,name=host"`
    // Scheme to use for connecting to the host.
    // Defaults to HTTP.
    // +optional
    Scheme URIScheme `json:"scheme,omitempty" protobuf:"bytes,4,opt,name=scheme,casttype=URIScheme"`
    // Custom headers to set in the request. HTTP allows repeated headers.
    // +optional
    HTTPHeaders []HTTPHeader `json:"httpHeaders,omitempty" protobuf:"bytes,5,rep,name=httpHeaders"`
}

HTTPGetAction describes an action based on HTTP Get requests.

type HTTPHeader Uses

type HTTPHeader struct {
    // The header field name
    Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
    // The header field value
    Value string `json:"value" protobuf:"bytes,2,opt,name=value"`
}

HTTPHeader describes a custom header to be used in HTTP probes

type URIScheme Uses

type URIScheme string

URIScheme identifies the scheme used for connection to a host for Get actions

const (
    // URISchemeHTTP means that the scheme used will be http://
    URISchemeHTTP URIScheme = "HTTP"
    // URISchemeHTTPS means that the scheme used will be https://
    URISchemeHTTPS URIScheme = "HTTPS"
)

Package apimirror imports 1 packages (graph) and is imported by 4 packages. Updated 2020-12-12. Refresh now. Tools for package owners.