Documentation ¶
Index ¶
- type DeploymentDescription
- type DynamicOutboundPermitValue
- type Encoding
- type NetworkIsolation
- type OutboundPermitOnlyIgnore
- type OutboundPermitValue
- type Pattern
- type Port
- type Service
- func (s *Service) AddFilesystemBinding(bind string)
- func (s *Service) AddSpecificPortBinding(b docker.PortBinding)
- func (s *Service) GetSpecificContainerPortBinding() string
- func (s *Service) GetSpecificHostBinding() string
- func (s *Service) GetSpecificHostPortBinding() string
- func (s *Service) HasSpecificPortBinding() bool
- type StaticOutboundPermitValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeploymentDescription ¶
type DeploymentDescription struct { Services map[string]*Service `json:"services"` ServicePattern Pattern `json:"service_pattern"` Infrastructure bool `json:"infrastructure"` Overrides map[string]*Service `json:"overrides"` }
func GetNativeDeployment ¶
func GetNativeDeployment(depStr string) (*DeploymentDescription, error)
Given a deployment string, unmarshal it as a native Horizon Deployment object. It might not be a native Deployment, so we have to verify what was just unmarshalled.
func (DeploymentDescription) IsValidFor ¶
func (d DeploymentDescription) IsValidFor(context string) bool
func (DeploymentDescription) ServiceNames ¶
func (d DeploymentDescription) ServiceNames() []string
type DynamicOutboundPermitValue ¶
type DynamicOutboundPermitValue struct { DdKey string `json:"dd_key"` Encoding Encoding `json:"encoding"` Path string `json:"path"` }
func (*DynamicOutboundPermitValue) String ¶
func (d *DynamicOutboundPermitValue) String() string
type NetworkIsolation ¶
type NetworkIsolation struct { OutboundPermitOnlyIgnore OutboundPermitOnlyIgnore `json:"outbound_permit_only_ignore"` OutboundPermitOnly []OutboundPermitValue `json:"outbound_permit_only"` }
func (*NetworkIsolation) UnmarshalJSON ¶
func (n *NetworkIsolation) UnmarshalJSON(data []byte) error
type OutboundPermitOnlyIgnore ¶
type OutboundPermitOnlyIgnore string
const (
ETH_ACCT_SPECIFIED OutboundPermitOnlyIgnore = "ETH_ACCT_SPECIFIED"
)
type OutboundPermitValue ¶
type OutboundPermitValue interface{}
type Service ¶
type Service struct { Image string `json:"image"` VariationLabel string `json:"variation_label,omitempty"` Privileged bool `json:"privileged"` Environment []string `json:"environment,omitempty"` CapAdd []string `json:"cap_add,omitempty"` Command []string `json:"command,omitempty"` Devices []string `json:"devices,omitempty"` NetworkIsolation *NetworkIsolation `json:"network_isolation,omitempty"` // Changed to pointer so that the hzn dev CLI doesnt generate this struct into the deployment config skeleton Binds []string `json:"binds,omitempty"` Tmpfs map[string]string `json:"tmpfs,omitempty"` Ports []docker.PortBinding `json:"ports,omitempty"` EphemeralPorts []Port `json:"ephemeral_ports,omitempty"` SpecificPorts []docker.PortBinding `json:"specific_ports,omitempty"` // obselete. for backward compatibility only, new way should use ports instead. }
Service Only those marked "omitempty" may be omitted
func (*Service) AddFilesystemBinding ¶
func (*Service) AddSpecificPortBinding ¶
func (s *Service) AddSpecificPortBinding(b docker.PortBinding)
func (*Service) GetSpecificContainerPortBinding ¶
func (*Service) GetSpecificHostBinding ¶
func (*Service) GetSpecificHostPortBinding ¶
func (*Service) HasSpecificPortBinding ¶
type StaticOutboundPermitValue ¶
type StaticOutboundPermitValue string
Click to show internal directories.
Click to hide internal directories.