Documentation
¶
Overview ¶
Package tunnel provides Tunnel operator implementation.
Index ¶
- type TunnelOperatorImpl
- func (o *TunnelOperatorImpl) AddIngressRule(ctx context.Context, container *types.ContainerInfo, ...) (*storage.ManagedResource, error)
- func (o *TunnelOperatorImpl) Create(ctx context.Context, resource *storage.ManagedResource) error
- func (o *TunnelOperatorImpl) Delete(ctx context.Context, resource *storage.ManagedResource) error
- func (o *TunnelOperatorImpl) Name() string
- func (o *TunnelOperatorImpl) Reconcile(ctx context.Context, desired []*types.ParsedContainer) error
- func (o *TunnelOperatorImpl) RemoveIngressRule(ctx context.Context, resource *storage.ManagedResource) error
- func (o *TunnelOperatorImpl) SetAutoCreateDNS(enabled bool)
- func (o *TunnelOperatorImpl) Update(ctx context.Context, resource *storage.ManagedResource) error
- func (o *TunnelOperatorImpl) UpdateIngressRule(ctx context.Context, resource *storage.ManagedResource, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TunnelOperatorImpl ¶
type TunnelOperatorImpl struct {
// contains filtered or unexported fields
}
TunnelOperatorImpl implements the Tunnel operator.
func NewTunnelOperator ¶
func NewTunnelOperator(credManager *cloudflare.CredentialManager, store storage.Storage) *TunnelOperatorImpl
NewTunnelOperator creates a new Tunnel operator.
func (*TunnelOperatorImpl) AddIngressRule ¶
func (o *TunnelOperatorImpl) AddIngressRule(ctx context.Context, container *types.ContainerInfo, service *types.TunnelService) (*storage.ManagedResource, error)
AddIngressRule adds an ingress rule to the tunnel.
func (*TunnelOperatorImpl) Create ¶
func (o *TunnelOperatorImpl) Create(ctx context.Context, resource *storage.ManagedResource) error
Create creates a resource (generic interface).
func (*TunnelOperatorImpl) Delete ¶
func (o *TunnelOperatorImpl) Delete(ctx context.Context, resource *storage.ManagedResource) error
Delete deletes a resource (generic interface).
func (*TunnelOperatorImpl) Name ¶
func (o *TunnelOperatorImpl) Name() string
Name returns the operator name.
func (*TunnelOperatorImpl) Reconcile ¶
func (o *TunnelOperatorImpl) Reconcile(ctx context.Context, desired []*types.ParsedContainer) error
Reconcile ensures Tunnel ingress rules match the desired state.
func (*TunnelOperatorImpl) RemoveIngressRule ¶
func (o *TunnelOperatorImpl) RemoveIngressRule(ctx context.Context, resource *storage.ManagedResource) error
RemoveIngressRule removes an ingress rule.
func (*TunnelOperatorImpl) SetAutoCreateDNS ¶
func (o *TunnelOperatorImpl) SetAutoCreateDNS(enabled bool)
SetAutoCreateDNS enables/disables automatic DNS record creation.
func (*TunnelOperatorImpl) Update ¶
func (o *TunnelOperatorImpl) Update(ctx context.Context, resource *storage.ManagedResource) error
Update updates a resource (generic interface).
func (*TunnelOperatorImpl) UpdateIngressRule ¶
func (o *TunnelOperatorImpl) UpdateIngressRule(ctx context.Context, resource *storage.ManagedResource, service *types.TunnelService) error
UpdateIngressRule updates an ingress rule.
Click to show internal directories.
Click to hide internal directories.