bastionhosts

package
v1.12.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureBastionSpec added in v1.2.0

type AzureBastionSpec struct {
	Name            string
	ResourceGroup   string
	Location        string
	ClusterName     string
	SubnetID        string
	PublicIPID      string
	Sku             infrav1.BastionHostSkuName
	EnableTunneling bool
}

AzureBastionSpec defines the specification for azure bastion feature.

func (*AzureBastionSpec) OwnerResourceName added in v1.2.0

func (s *AzureBastionSpec) OwnerResourceName() string

OwnerResourceName is a no-op for bastion hosts.

func (*AzureBastionSpec) Parameters added in v1.2.0

func (s *AzureBastionSpec) Parameters(ctx context.Context, existing interface{}) (parameters interface{}, err error)

Parameters returns the parameters for the bastion host.

func (*AzureBastionSpec) ResourceGroupName added in v1.2.0

func (s *AzureBastionSpec) ResourceGroupName() string

ResourceGroupName returns the name of the resource group.

func (*AzureBastionSpec) ResourceName added in v1.2.0

func (s *AzureBastionSpec) ResourceName() string

ResourceName returns the name of the bastion host.

type AzureBastionSpecInput added in v1.2.0

type AzureBastionSpecInput struct {
	SubnetName   string
	PublicIPName string
	VNetName     string
}

AzureBastionSpecInput defines the required inputs to construct an azure bastion spec.

type BastionScope

type BastionScope interface {
	azure.ClusterScoper
	azure.AsyncStatusUpdater
	AzureBastionSpec() azure.ResourceSpecGetter
}

BastionScope defines the scope interface for a bastion host service.

type Service

type Service struct {
	Scope BastionScope
	async.Reconciler
}

Service provides operations on Azure resources.

func New

func New(scope BastionScope) (*Service, error)

New creates a new service.

func (*Service) Delete

func (s *Service) Delete(ctx context.Context) error

Delete deletes the bastion host with the provided scope.

func (*Service) IsManaged added in v1.3.0

func (s *Service) IsManaged(ctx context.Context) (bool, error)

IsManaged returns always returns true as CAPZ does not support BYO bastion.

func (*Service) Name added in v1.3.0

func (s *Service) Name() string

Name returns the service name.

func (*Service) Reconcile

func (s *Service) Reconcile(ctx context.Context) error

Reconcile idempotently creates or updates a bastion host.

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL