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" )
View Source
const ( K8SServiceNetworkOwnedByVPC = "K8SServiceNetworkOwnedByVPC" K8SServiceOwnedByVPC = "K8SServiceOwnedByVPC" )
View Source
const ( K8SServiceNameKey = "K8SServiceName" K8SServiceNamespaceKey = "K8SServiceNamespace" K8SParentRefTypeKey = "K8SParentRefTypeKey" K8SHTTPRouteNameKey = "K8SHTTPRouteName" K8SHTTPRouteNamespaceKey = "K8SHTTPRouteNamespace" K8SServiceExportType = "K8SServiceExportType" K8SHTTPRouteType = "K8SHTTPRouteType" )
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 ServiceSpec struct { Name string `json:"name"` Namespace string `json:"namespace"` Protocols []*string `json:"protocols"` ServiceNetworkNames []string `json:"servicenetworkhname"` CustomerDomainName string `json:"customerdomainname"` CustomerCertARN string `json:"customercertarn"` IsDeleted bool }
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 TargetGroupConfig struct { Port int32 `json:"port"` Protocol string `json:"protocol"` ProtocolVersion string `json:"protocolversion"` VpcID string `json:"vpcid"` EKSClusterName string `json:"eksclustername"` IsServiceImport bool `json:"serviceimport"` // the following fields are used for AWS resource tagging IsServiceExport bool `json:"serviceexport"` K8SServiceName string `json:"k8sservice"` K8SServiceNamespace string `json:"k8sservicenamespace"` K8SHTTPRouteName string `json:"k8shttproutename"` K8SHTTPRouteNamespace string `json:"k8shttproutenamespace"` }
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.