linode

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is an implementation of generic.Provider for Akamai Linode.

func New

func New() (*Client, error)

New returns a new Client.

func (Client) Get

func (c Client) Get(ctx context.Context, name string) (*generic.Firewall, error)

Get searches for a specific firewall in the account by name. It then returns a pointer to a *generic.Firewall which is a aggressively paired down representation of a Cloud Provider Firewall.

func (Client) List

func (c Client) List(ctx context.Context) ([]generic.Firewall, error)

List will list all firewalls present in the account. It returns an unfiltered list of firewall names.

func (Client) Update

func (c Client) Update(ctx context.Context, name string, sourceRanges []string) error

Update will update the given firewall rule with the provided IPs in sourceRanges.

Jump to

Keyboard shortcuts

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