Documentation ¶
Index ¶
- Constants
- type DefaultAction
- type Listener
- type ListenerSpec
- type ListenerStatus
- type Rule
- type RuleAction
- type RuleSpec
- type RuleStatus
- type RuleTargetGroup
- type Service
- type ServiceNetwork
- type ServiceNetworkSpec
- type ServiceNetworkStatus
- type ServiceSpec
- type ServiceStatus
- type Target
- type TargetGroup
- type TargetGroupConfig
- type TargetGroupSpec
- type TargetGroupStatus
- type TargetGroupType
- type Targets
- type TargetsSpec
Constants ¶
View Source
const ( // K8S HTTPRouteMatch MatchByPath = "HTTPRouteMatch" // K8S HTTPRouteFilter MatchByFilter = "HTTPRouteFilter" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultAction ¶
type Listener ¶
type Listener struct { core.ResourceMeta `json:"-"` Spec ListenerSpec `json:"spec"` Status *ListenerStatus `json:"status,omitempty"` }
type ListenerSpec ¶
type ListenerSpec struct { Name string `json:"name"` Namespace string `json:"namespace"` Port int64 `json:"port"` Protocol string `json:"protocol"` DefaultAction DefaultAction `json:"defaultaction"` }
type ListenerStatus ¶
type Rule ¶
type Rule struct { core.ResourceMeta `json:"-"` Spec RuleSpec `json:"spec"` Status *RuleStatus `json:"status,omitempty"` }
type RuleAction ¶
type RuleAction struct {
TargetGroups []*RuleTargetGroup `json:"ruletarget"`
}
type RuleSpec ¶
type RuleSpec struct { ServiceName string `json:"name"` ServiceNamespace string `json:"namespace"` ListenerPort int64 `json:"port"` ListenerProtocol string `json:"protocol"` RuleType string `json:"ruletype"` RuleValue string `json:"value"` RuleID string `json:"id"` Action RuleAction `json:"action"` CreateTime time.Time `json:"time"` }
type RuleStatus ¶
type RuleTargetGroup ¶
type Service ¶
type Service struct { core.ResourceMeta `json:"-"` Spec ServiceSpec `json:"spec"` Status *ServiceStatus `json:"status,omitempty"` }
func NewLatticeService ¶
func NewLatticeService(stack core.Stack, id string, spec ServiceSpec) *Service
type ServiceNetwork ¶
type ServiceNetwork struct { core.ResourceMeta `json:"-"` // desired state of ServiceNetwork Spec ServiceNetworkSpec `json:"spec"` // observed state of ServiceNetwork Status *ServiceNetworkStatus `json:"status,omitempty"` }
func NewServiceNetwork ¶
func NewServiceNetwork(stack core.Stack, id string, spec ServiceNetworkSpec) *ServiceNetwork
type ServiceNetworkSpec ¶
type ServiceNetworkStatus ¶
type ServiceSpec ¶
type ServiceStatus ¶
type TargetGroup ¶
type TargetGroup struct { core.ResourceMeta `json:"-"` Spec TargetGroupSpec `json:"spec"` Status *TargetGroupStatus `json:"status,omitempty"` }
func NewTargetGroup ¶
func NewTargetGroup(stack core.Stack, id string, spec TargetGroupSpec) *TargetGroup
type TargetGroupConfig ¶
type TargetGroupSpec ¶
type TargetGroupSpec struct { Name string Config TargetGroupConfig `json:"config"` Type TargetGroupType IsDeleted bool LatticeID string }
type TargetGroupStatus ¶
type TargetGroupType ¶
type TargetGroupType string
const (
TargetGroupTypeIP TargetGroupType = "IP"
)
type Targets ¶
type Targets struct { core.ResourceMeta `json:"-"` Spec TargetsSpec `json:"spec"` }
func NewTargets ¶
func NewTargets(stack core.Stack, id string, spec TargetsSpec) *Targets
Click to show internal directories.
Click to hide internal directories.