Documentation ¶
Index ¶
Constants ¶
View Source
const TypeIngress string = "ingress"
TypeIngress is the resource string for the type
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ingress ¶
type Ingress struct { types.ResourceMetadata `hcl:",remain"` // local port to expose the service on Port int `hcl:"port" json:"port"` // Are we exposing a local serve to the target // if ExposeLocal bool `hcl:"expose_local,optional" json:"expose_local"` // details for the destination service Target TrafficTarget `hcl:"target,block" json:"target"` // path to open in the browser OpenInBrowser string `hcl:"open_in_browser,optional" json:"open_in_browser,omitempty"` // IngressId stores the ID of the created connector service IngressID string `hcl:"ingress_id,optional" json:"ingress_id,omitempty"` // LocalAddress is the fully qualified uri for accessing the resource from // the local machine LocalAddress string `hcl:"local_address,optional" json:"local_address,omitempty"` // RemoteAddress is the fully qualified uri for accessing the resource // in the remote machine RemoteAddress string `hcl:"remote_address,optional" json:"remote_address,omitempty"` }
Ingress defines an ingress service mapping ports between local host and resources like containers and kube cluster
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Ingress defines a provider for handling connection ingress for a cluster
func (*Provider) Destroy ¶
Destroy satisfies the interface method but is not implemented by LocalExec
type TargetConfig ¶
type TrafficTarget ¶
type TrafficTarget struct { Resource TargetConfig `hcl:"resource" json:"resource,omitempty"` Port int `hcl:"port,optional" json:"port,omitempty"` NamedPort string `hcl:"named_port,optional" json:"named_port,omitempty"` // Config is an collection which has driver specific content Config map[string]string `hcl:"config" json:"config"` }
Traffic defines either a source or a destination block for ingress traffic
Click to show internal directories.
Click to hide internal directories.