Documentation ¶
Index ¶
- Constants
- type FloatingIPIntent
- type LogicalRouterIntent
- type NetworkPolicyIntent
- type RoutingInstanceIntent
- type SecurityGroupIntent
- type Service
- func (s *Service) CreateFloatingIP(ctx context.Context, request *services.CreateFloatingIPRequest) (*services.CreateFloatingIPResponse, error)
- func (s *Service) CreateLogicalRouter(ctx context.Context, request *services.CreateLogicalRouterRequest) (*services.CreateLogicalRouterResponse, error)
- func (s *Service) CreateRoutingInstance(ctx context.Context, request *services.CreateRoutingInstanceRequest) (*services.CreateRoutingInstanceResponse, error)
- func (s *Service) CreateSecurityGroup(ctx context.Context, request *services.CreateSecurityGroupRequest) (*services.CreateSecurityGroupResponse, error)
- func (s *Service) CreateVirtualMachineInterface(ctx context.Context, request *services.CreateVirtualMachineInterfaceRequest) (*services.CreateVirtualMachineInterfaceResponse, error)
- func (s *Service) CreateVirtualNetwork(ctx context.Context, request *services.CreateVirtualNetworkRequest) (*services.CreateVirtualNetworkResponse, error)
- func (s *Service) DeleteFloatingIP(ctx context.Context, request *services.DeleteFloatingIPRequest) (*services.DeleteFloatingIPResponse, error)
- func (s *Service) DeleteSecurityGroup(ctx context.Context, request *services.DeleteSecurityGroupRequest) (*services.DeleteSecurityGroupResponse, error)
- func (s *Service) EvaluateDependencies(ctx context.Context, evaluateCtx *intent.EvaluateContext, i intent.Intent) error
- func (s *Service) UpdateFloatingIP(ctx context.Context, request *services.UpdateFloatingIPRequest) (*services.UpdateFloatingIPResponse, error)
- func (s *Service) UpdateLogicalRouter(ctx context.Context, request *services.UpdateLogicalRouterRequest) (*services.UpdateLogicalRouterResponse, error)
- func (s *Service) UpdateRoutingInstance(ctx context.Context, request *services.UpdateRoutingInstanceRequest) (*services.UpdateRoutingInstanceResponse, error)
- func (s *Service) UpdateSecurityGroup(ctx context.Context, request *services.UpdateSecurityGroupRequest) (*services.UpdateSecurityGroupResponse, error)
- func (s *Service) UpdateVirtualMachineInterface(ctx context.Context, request *services.UpdateVirtualMachineInterfaceRequest) (*services.UpdateVirtualMachineInterfaceResponse, error)
- type VirtualMachineInterfaceIntent
- type VirtualNetworkIntent
Constants ¶
const ReactionsYAML = `` /* 2501-byte string literal not displayed */
ReactionsYAML reaction map stored as yaml
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FloatingIPIntent ¶
type FloatingIPIntent struct { intent.BaseIntent *models.FloatingIP // contains filtered or unexported fields }
FloatingIPIntent contains Intent Compiler state for FloatingIP.
func LoadFloatingIPIntent ¶
func LoadFloatingIPIntent(loader intent.Loader, query intent.Query) *FloatingIPIntent
LoadFloatingIPIntent loads a floating IP intent from cache.
func (*FloatingIPIntent) GetObject ¶
func (i *FloatingIPIntent) GetObject() asfmodels.Object
GetObject returns embedded resource object.
type LogicalRouterIntent ¶
type LogicalRouterIntent struct { intent.BaseIntent *models.LogicalRouter // contains filtered or unexported fields }
LogicalRouterIntent contains Intent Compiler state for LogicalRouter.
func LoadLogicalRouterIntent ¶
func LoadLogicalRouterIntent(loader intent.Loader, query intent.Query) *LogicalRouterIntent
LoadLogicalRouterIntent loads a logical router intent from cache.
func NewLogicalRouterIntent ¶
func NewLogicalRouterIntent( ctx context.Context, ReadService services.ReadService, request *services.CreateLogicalRouterRequest, ) *LogicalRouterIntent
NewLogicalRouterIntent creates LogicalRouterIntent from CreateLogicalRouterRequest
func (*LogicalRouterIntent) Evaluate ¶
func (i *LogicalRouterIntent) Evaluate( ctx context.Context, evaluateCtx *intent.EvaluateContext, ) error
Evaluate updates references from default routing instances of virtual networks to the logical router's route target.
func (*LogicalRouterIntent) GetObject ¶
func (i *LogicalRouterIntent) GetObject() asfmodels.Object
GetObject returns embedded resource object
type NetworkPolicyIntent ¶
type NetworkPolicyIntent struct { intent.BaseIntent *models.NetworkPolicy }
NetworkPolicyIntent intent
func (*NetworkPolicyIntent) GetObject ¶
func (i *NetworkPolicyIntent) GetObject() asfmodels.Object
GetObject returns embedded resource object
type RoutingInstanceIntent ¶
type RoutingInstanceIntent struct { intent.BaseIntent *models.RoutingInstance }
RoutingInstanceIntent contains Intent Compiler state for RoutingInstance.
func LoadRoutingInstanceIntent ¶
func LoadRoutingInstanceIntent(loader intent.Loader, query intent.Query) *RoutingInstanceIntent
LoadRoutingInstanceIntent loads a routing instance intent from cache.
func (*RoutingInstanceIntent) Evaluate ¶
func (i *RoutingInstanceIntent) Evaluate( ctx context.Context, evaluateContext *intent.EvaluateContext, ) error
Evaluate may create default Route Target.
func (*RoutingInstanceIntent) GetObject ¶
func (i *RoutingInstanceIntent) GetObject() asfmodels.Object
GetObject returns embedded resource object
type SecurityGroupIntent ¶
type SecurityGroupIntent struct { intent.BaseIntent *models.SecurityGroup // contains filtered or unexported fields }
SecurityGroupIntent contains Intent Compiler state for SecurityGroup
func LoadSecurityGroupIntent ¶
func LoadSecurityGroupIntent(loader intent.Loader, query intent.Query) *SecurityGroupIntent
LoadSecurityGroupIntent loads a security group intent from cache.
func (*SecurityGroupIntent) DefaultACLs ¶
func (i *SecurityGroupIntent) DefaultACLs(ec *intent.EvaluateContext) ( ingressACL *models.AccessControlList, egressACL *models.AccessControlList)
DefaultACLs returns default ACLs corresponding to the security group's policy rules.
func (*SecurityGroupIntent) Evaluate ¶
func (i *SecurityGroupIntent) Evaluate(ctx context.Context, ec *intent.EvaluateContext) error
Evaluate Creates default AccessControlList's for the already created SecurityGroup.
func (*SecurityGroupIntent) GetObject ¶
func (i *SecurityGroupIntent) GetObject() asfmodels.Object
GetObject returns embedded resource object
type Service ¶
type Service struct { services.BaseService // WriteService is used to create/update/delete lower-level resources WriteService services.WriteService IntPoolAllocator asfservices.IntPoolAllocator ReadService services.ReadService // contains filtered or unexported fields }
Service implementing Intent Compiler's type-specific logic.
func NewService ¶
func NewService( apiClient services.WriteService, readService services.ReadService, allocator asfservices.IntPoolAllocator, cache *intent.Cache, dependencyProcessor *dependencies.DependencyProcessor, ) *Service
NewService creates a Service
func (*Service) CreateFloatingIP ¶
func (s *Service) CreateFloatingIP( ctx context.Context, request *services.CreateFloatingIPRequest, ) (*services.CreateFloatingIPResponse, error)
CreateFloatingIP stores newly created floating ip resource in cache
func (*Service) CreateLogicalRouter ¶
func (s *Service) CreateLogicalRouter( ctx context.Context, request *services.CreateLogicalRouterRequest, ) (*services.CreateLogicalRouterResponse, error)
CreateLogicalRouter evaluates logical router dependencies.
func (*Service) CreateRoutingInstance ¶
func (s *Service) CreateRoutingInstance( ctx context.Context, request *services.CreateRoutingInstanceRequest, ) (*services.CreateRoutingInstanceResponse, error)
CreateRoutingInstance evaluates RoutingInstance dependencies.
func (*Service) CreateSecurityGroup ¶
func (s *Service) CreateSecurityGroup( ctx context.Context, request *services.CreateSecurityGroupRequest, ) (*services.CreateSecurityGroupResponse, error)
CreateSecurityGroup evaluates SecurityGroup dependencies.
func (*Service) CreateVirtualMachineInterface ¶
func (s *Service) CreateVirtualMachineInterface( ctx context.Context, request *services.CreateVirtualMachineInterfaceRequest, ) (*services.CreateVirtualMachineInterfaceResponse, error)
CreateVirtualMachineInterface evaluates VirtualMachineInterface dependencies.
func (*Service) CreateVirtualNetwork ¶
func (s *Service) CreateVirtualNetwork( ctx context.Context, request *services.CreateVirtualNetworkRequest, ) (*services.CreateVirtualNetworkResponse, error)
CreateVirtualNetwork evaluates VirtualNetwork dependencies.
func (*Service) DeleteFloatingIP ¶
func (s *Service) DeleteFloatingIP( ctx context.Context, request *services.DeleteFloatingIPRequest, ) (*services.DeleteFloatingIPResponse, error)
DeleteFloatingIP deletes FloatingIP from cache.
func (*Service) DeleteSecurityGroup ¶
func (s *Service) DeleteSecurityGroup( ctx context.Context, request *services.DeleteSecurityGroupRequest, ) (*services.DeleteSecurityGroupResponse, error)
DeleteSecurityGroup evaluates SecurityGroup dependencies.
func (*Service) EvaluateDependencies ¶
func (s *Service) EvaluateDependencies( ctx context.Context, evaluateCtx *intent.EvaluateContext, i intent.Intent, ) error
EvaluateDependencies evaluates the dependencies upon object change
func (*Service) UpdateFloatingIP ¶
func (s *Service) UpdateFloatingIP( ctx context.Context, request *services.UpdateFloatingIPRequest, ) (*services.UpdateFloatingIPResponse, error)
UpdateFloatingIP evaluates FloatingIP dependencies.
func (*Service) UpdateLogicalRouter ¶
func (s *Service) UpdateLogicalRouter( ctx context.Context, request *services.UpdateLogicalRouterRequest, ) (*services.UpdateLogicalRouterResponse, error)
UpdateLogicalRouter evaluates logical router dependencies.
func (*Service) UpdateRoutingInstance ¶
func (s *Service) UpdateRoutingInstance( ctx context.Context, request *services.UpdateRoutingInstanceRequest, ) (*services.UpdateRoutingInstanceResponse, error)
UpdateRoutingInstance evaluates routing instance dependencies.
func (*Service) UpdateSecurityGroup ¶
func (s *Service) UpdateSecurityGroup( ctx context.Context, request *services.UpdateSecurityGroupRequest, ) (*services.UpdateSecurityGroupResponse, error)
UpdateSecurityGroup evaluates SecurityGroup dependencies.
func (*Service) UpdateVirtualMachineInterface ¶
func (s *Service) UpdateVirtualMachineInterface( ctx context.Context, request *services.UpdateVirtualMachineInterfaceRequest, ) (*services.UpdateVirtualMachineInterfaceResponse, error)
UpdateVirtualMachineInterface evaluates UpdateMachineInterface dependencies.
type VirtualMachineInterfaceIntent ¶
type VirtualMachineInterfaceIntent struct { intent.BaseIntent *models.VirtualMachineInterface }
VirtualMachineInterfaceIntent intent
func LoadVirtualMachineInterfaceIntent ¶
func LoadVirtualMachineInterfaceIntent(loader intent.Loader, query intent.Query) *VirtualMachineInterfaceIntent
LoadVirtualMachineInterfaceIntent loads a virtual machine interface intent from cache.
func NewVirtualMachineInterfaceIntent ¶
func NewVirtualMachineInterfaceIntent( _ context.Context, _ services.ReadService, request *services.CreateVirtualMachineInterfaceRequest, ) *VirtualMachineInterfaceIntent
NewVirtualMachineInterfaceIntent returns a new virtual machine interface intent.
func (*VirtualMachineInterfaceIntent) GetObject ¶
func (i *VirtualMachineInterfaceIntent) GetObject() asfmodels.Object
GetObject returns embedded resource object
type VirtualNetworkIntent ¶
type VirtualNetworkIntent struct { intent.BaseIntent *models.VirtualNetwork }
VirtualNetworkIntent intent
func LoadVirtualNetworkIntent ¶
func LoadVirtualNetworkIntent(loader intent.Loader, query intent.Query) *VirtualNetworkIntent
LoadVirtualNetworkIntent loads a virtual network intent from cache.
func NewVirtualNetworkIntent ¶
func NewVirtualNetworkIntent( _ context.Context, _ services.ReadService, request *services.CreateVirtualNetworkRequest, ) *VirtualNetworkIntent
NewVirtualNetworkIntent returns a new virtual network intent.
func (*VirtualNetworkIntent) GetObject ¶
func (i *VirtualNetworkIntent) GetObject() asfmodels.Object
GetObject returns embedded resource object
func (*VirtualNetworkIntent) GetPrimaryRoutingInstanceIntent ¶
func (i *VirtualNetworkIntent) GetPrimaryRoutingInstanceIntent( _ context.Context, ec *intent.EvaluateContext, ) *RoutingInstanceIntent
GetPrimaryRoutingInstanceIntent returns the virtual network's default routing instance intent.