linodeclient

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NodebalancerIDParam = "nodebalancerID"
	ConfigIDParam       = "configID"
	DomainIDParam       = "domainID"
	DiskIDParam         = "diskID"
	NodeIDParam         = "nodeID"
	DomainRecordIDParam = "domainRecordID"
	LinodeIDParam       = "linodeID"
	KeyIDParam          = "keyID"
	VpcIDParam          = "vpcID"
	ImageIDParam        = "imageID"
	ClusterParam        = "cluster"
	LabelParam          = "label"
	RegionIDParam       = "regionID"
	TypeIDParam         = "typeID"
	SizeParam           = "size"
	RecordReqParam      = "recordReq"
)

Variables

This section is empty.

Functions

func DefaultDecorator added in v0.6.0

func DefaultDecorator() func(span trace.Span, params, results map[string]interface{})

Types

type LinodeClientWithTracing

type LinodeClientWithTracing struct {
	clients.LinodeClient
	// contains filtered or unexported fields
}

LinodeClientWithTracing implements clients.LinodeClient interface instrumented with opentracing spans

func NewLinodeClientWithTracing

func NewLinodeClientWithTracing(base clients.LinodeClient, spanDecorator ...func(span trace.Span, params, results map[string]interface{})) LinodeClientWithTracing

NewLinodeClientWithTracing returns LinodeClientWithTracing

func (LinodeClientWithTracing) AssignPlacementGroupLinodes added in v0.6.0

func (_d LinodeClientWithTracing) AssignPlacementGroupLinodes(ctx context.Context, id int, options linodego.PlacementGroupAssignOptions) (pp1 *linodego.PlacementGroup, err error)

AssignPlacementGroupLinodes implements clients.LinodeClient

func (LinodeClientWithTracing) BootInstance

func (_d LinodeClientWithTracing) BootInstance(ctx context.Context, linodeID int, configID int) (err error)

BootInstance implements clients.LinodeClient

func (LinodeClientWithTracing) CreateDomainRecord

func (_d LinodeClientWithTracing) CreateDomainRecord(ctx context.Context, domainID int, recordReq linodego.DomainRecordCreateOptions) (dp1 *linodego.DomainRecord, err error)

CreateDomainRecord implements clients.LinodeClient

func (LinodeClientWithTracing) CreateFirewall added in v0.6.1

CreateFirewall implements clients.LinodeClient

func (LinodeClientWithTracing) CreateInstance

CreateInstance implements clients.LinodeClient

func (LinodeClientWithTracing) CreateInstanceDisk

func (_d LinodeClientWithTracing) CreateInstanceDisk(ctx context.Context, linodeID int, opts linodego.InstanceDiskCreateOptions) (ip1 *linodego.InstanceDisk, err error)

CreateInstanceDisk implements clients.LinodeClient

func (LinodeClientWithTracing) CreateNodeBalancer

CreateNodeBalancer implements clients.LinodeClient

func (LinodeClientWithTracing) CreateNodeBalancerConfig

func (_d LinodeClientWithTracing) CreateNodeBalancerConfig(ctx context.Context, nodebalancerID int, opts linodego.NodeBalancerConfigCreateOptions) (np1 *linodego.NodeBalancerConfig, err error)

CreateNodeBalancerConfig implements clients.LinodeClient

func (LinodeClientWithTracing) CreateNodeBalancerNode

func (_d LinodeClientWithTracing) CreateNodeBalancerNode(ctx context.Context, nodebalancerID int, configID int, opts linodego.NodeBalancerNodeCreateOptions) (np1 *linodego.NodeBalancerNode, err error)

CreateNodeBalancerNode implements clients.LinodeClient

func (LinodeClientWithTracing) CreateObjectStorageBucket

CreateObjectStorageBucket implements clients.LinodeClient

func (LinodeClientWithTracing) CreateObjectStorageKey

CreateObjectStorageKey implements clients.LinodeClient

func (LinodeClientWithTracing) CreatePlacementGroup added in v0.6.0

CreatePlacementGroup implements clients.LinodeClient

func (LinodeClientWithTracing) CreateStackscript

CreateStackscript implements clients.LinodeClient

func (LinodeClientWithTracing) CreateVPC

func (_d LinodeClientWithTracing) CreateVPC(ctx context.Context, opts linodego.VPCCreateOptions) (vp1 *linodego.VPC, err error)

CreateVPC implements clients.LinodeClient

func (LinodeClientWithTracing) DeleteDomainRecord

func (_d LinodeClientWithTracing) DeleteDomainRecord(ctx context.Context, domainID int, domainRecordID int) (err error)

DeleteDomainRecord implements clients.LinodeClient

func (LinodeClientWithTracing) DeleteFirewall added in v0.6.1

func (_d LinodeClientWithTracing) DeleteFirewall(ctx context.Context, firewallID int) (err error)

DeleteFirewall implements clients.LinodeClient

func (LinodeClientWithTracing) DeleteFirewallDevice added in v0.6.1

func (_d LinodeClientWithTracing) DeleteFirewallDevice(ctx context.Context, firewallID int, deviceID int) (err error)

DeleteFirewallDevice implements clients.LinodeClient

func (LinodeClientWithTracing) DeleteInstance

func (_d LinodeClientWithTracing) DeleteInstance(ctx context.Context, linodeID int) (err error)

DeleteInstance implements clients.LinodeClient

func (LinodeClientWithTracing) DeleteNodeBalancer

func (_d LinodeClientWithTracing) DeleteNodeBalancer(ctx context.Context, nodebalancerID int) (err error)

DeleteNodeBalancer implements clients.LinodeClient

func (LinodeClientWithTracing) DeleteNodeBalancerNode

func (_d LinodeClientWithTracing) DeleteNodeBalancerNode(ctx context.Context, nodebalancerID int, configID int, nodeID int) (err error)

DeleteNodeBalancerNode implements clients.LinodeClient

func (LinodeClientWithTracing) DeleteObjectStorageKey

func (_d LinodeClientWithTracing) DeleteObjectStorageKey(ctx context.Context, keyID int) (err error)

DeleteObjectStorageKey implements clients.LinodeClient

func (LinodeClientWithTracing) DeletePlacementGroup added in v0.6.0

func (_d LinodeClientWithTracing) DeletePlacementGroup(ctx context.Context, id int) (err error)

DeletePlacementGroup implements clients.LinodeClient

func (LinodeClientWithTracing) DeleteVPC

func (_d LinodeClientWithTracing) DeleteVPC(ctx context.Context, vpcID int) (err error)

DeleteVPC implements clients.LinodeClient

func (LinodeClientWithTracing) GetFirewall added in v0.6.1

func (_d LinodeClientWithTracing) GetFirewall(ctx context.Context, firewallID int) (fp1 *linodego.Firewall, err error)

GetFirewall implements clients.LinodeClient

func (LinodeClientWithTracing) GetFirewallDevice added in v0.6.1

func (_d LinodeClientWithTracing) GetFirewallDevice(ctx context.Context, firewallID int, deviceID int) (fp1 *linodego.FirewallDevice, err error)

GetFirewallDevice implements clients.LinodeClient

func (LinodeClientWithTracing) GetFirewallRules added in v0.6.1

func (_d LinodeClientWithTracing) GetFirewallRules(ctx context.Context, firewallID int) (fp1 *linodego.FirewallRuleSet, err error)

GetFirewallRules implements clients.LinodeClient

func (LinodeClientWithTracing) GetImage

func (_d LinodeClientWithTracing) GetImage(ctx context.Context, imageID string) (ip1 *linodego.Image, err error)

GetImage implements clients.LinodeClient

func (LinodeClientWithTracing) GetInstance

func (_d LinodeClientWithTracing) GetInstance(ctx context.Context, linodeID int) (ip1 *linodego.Instance, err error)

GetInstance implements clients.LinodeClient

func (LinodeClientWithTracing) GetInstanceDisk

func (_d LinodeClientWithTracing) GetInstanceDisk(ctx context.Context, linodeID int, diskID int) (ip1 *linodego.InstanceDisk, err error)

GetInstanceDisk implements clients.LinodeClient

func (LinodeClientWithTracing) GetInstanceIPAddresses

func (_d LinodeClientWithTracing) GetInstanceIPAddresses(ctx context.Context, linodeID int) (ip1 *linodego.InstanceIPAddressResponse, err error)

GetInstanceIPAddresses implements clients.LinodeClient

func (LinodeClientWithTracing) GetNodeBalancer added in v0.5.0

func (_d LinodeClientWithTracing) GetNodeBalancer(ctx context.Context, nodebalancerID int) (np1 *linodego.NodeBalancer, err error)

GetNodeBalancer implements clients.LinodeClient

func (LinodeClientWithTracing) GetNodeBalancerConfig added in v0.5.0

func (_d LinodeClientWithTracing) GetNodeBalancerConfig(ctx context.Context, nodebalancerID int, configID int) (np1 *linodego.NodeBalancerConfig, err error)

GetNodeBalancerConfig implements clients.LinodeClient

func (LinodeClientWithTracing) GetObjectStorageBucket

func (_d LinodeClientWithTracing) GetObjectStorageBucket(ctx context.Context, regionID string, label string) (op1 *linodego.ObjectStorageBucket, err error)

GetObjectStorageBucket implements clients.LinodeClient

func (LinodeClientWithTracing) GetObjectStorageBucketAccess added in v0.6.1

func (_d LinodeClientWithTracing) GetObjectStorageBucketAccess(ctx context.Context, clusterOrRegionID string, label string) (op1 *linodego.ObjectStorageBucketAccess, err error)

GetObjectStorageBucketAccess implements clients.LinodeClient

func (LinodeClientWithTracing) GetObjectStorageKey

func (_d LinodeClientWithTracing) GetObjectStorageKey(ctx context.Context, keyID int) (op1 *linodego.ObjectStorageKey, err error)

GetObjectStorageKey implements clients.LinodeClient

func (LinodeClientWithTracing) GetPlacementGroup added in v0.6.0

func (_d LinodeClientWithTracing) GetPlacementGroup(ctx context.Context, id int) (pp1 *linodego.PlacementGroup, err error)

GetPlacementGroup implements clients.LinodeClient

func (LinodeClientWithTracing) GetRegion

func (_d LinodeClientWithTracing) GetRegion(ctx context.Context, regionID string) (rp1 *linodego.Region, err error)

GetRegion implements clients.LinodeClient

func (LinodeClientWithTracing) GetType

func (_d LinodeClientWithTracing) GetType(ctx context.Context, typeID string) (lp1 *linodego.LinodeType, err error)

GetType implements clients.LinodeClient

func (LinodeClientWithTracing) GetVPC

func (_d LinodeClientWithTracing) GetVPC(ctx context.Context, vpcID int) (vp1 *linodego.VPC, err error)

GetVPC implements clients.LinodeClient

func (LinodeClientWithTracing) ListDomainRecords

func (_d LinodeClientWithTracing) ListDomainRecords(ctx context.Context, domainID int, opts *linodego.ListOptions) (da1 []linodego.DomainRecord, err error)

ListDomainRecords implements clients.LinodeClient

func (LinodeClientWithTracing) ListDomains

func (_d LinodeClientWithTracing) ListDomains(ctx context.Context, opts *linodego.ListOptions) (da1 []linodego.Domain, err error)

ListDomains implements clients.LinodeClient

func (LinodeClientWithTracing) ListInstanceConfigs

func (_d LinodeClientWithTracing) ListInstanceConfigs(ctx context.Context, linodeID int, opts *linodego.ListOptions) (ia1 []linodego.InstanceConfig, err error)

ListInstanceConfigs implements clients.LinodeClient

func (LinodeClientWithTracing) ListInstances

func (_d LinodeClientWithTracing) ListInstances(ctx context.Context, opts *linodego.ListOptions) (ia1 []linodego.Instance, err error)

ListInstances implements clients.LinodeClient

func (LinodeClientWithTracing) ListNodeBalancerNodes added in v0.6.1

func (_d LinodeClientWithTracing) ListNodeBalancerNodes(ctx context.Context, nodebalancerID int, configID int, opts *linodego.ListOptions) (na1 []linodego.NodeBalancerNode, err error)

ListNodeBalancerNodes implements clients.LinodeClient

func (LinodeClientWithTracing) ListPlacementGroups added in v0.6.0

func (_d LinodeClientWithTracing) ListPlacementGroups(ctx context.Context, options *linodego.ListOptions) (pa1 []linodego.PlacementGroup, err error)

ListPlacementGroups implements clients.LinodeClient

func (LinodeClientWithTracing) ListStackscripts

func (_d LinodeClientWithTracing) ListStackscripts(ctx context.Context, opts *linodego.ListOptions) (sa1 []linodego.Stackscript, err error)

ListStackscripts implements clients.LinodeClient

func (LinodeClientWithTracing) ListVPCs

func (_d LinodeClientWithTracing) ListVPCs(ctx context.Context, opts *linodego.ListOptions) (va1 []linodego.VPC, err error)

ListVPCs implements clients.LinodeClient

func (LinodeClientWithTracing) ResizeInstanceDisk

func (_d LinodeClientWithTracing) ResizeInstanceDisk(ctx context.Context, linodeID int, diskID int, size int) (err error)

ResizeInstanceDisk implements clients.LinodeClient

func (LinodeClientWithTracing) UnassignPlacementGroupLinodes added in v0.6.0

func (_d LinodeClientWithTracing) UnassignPlacementGroupLinodes(ctx context.Context, id int, options linodego.PlacementGroupUnAssignOptions) (pp1 *linodego.PlacementGroup, err error)

UnassignPlacementGroupLinodes implements clients.LinodeClient

func (LinodeClientWithTracing) UpdateDomainRecord

func (_d LinodeClientWithTracing) UpdateDomainRecord(ctx context.Context, domainID int, domainRecordID int, recordReq linodego.DomainRecordUpdateOptions) (dp1 *linodego.DomainRecord, err error)

UpdateDomainRecord implements clients.LinodeClient

func (LinodeClientWithTracing) UpdateFirewall added in v0.6.1

func (_d LinodeClientWithTracing) UpdateFirewall(ctx context.Context, firewallID int, opts linodego.FirewallUpdateOptions) (fp1 *linodego.Firewall, err error)

UpdateFirewall implements clients.LinodeClient

func (LinodeClientWithTracing) UpdateFirewallRules added in v0.6.1

func (_d LinodeClientWithTracing) UpdateFirewallRules(ctx context.Context, firewallID int, rules linodego.FirewallRuleSet) (fp1 *linodego.FirewallRuleSet, err error)

UpdateFirewallRules implements clients.LinodeClient

func (LinodeClientWithTracing) UpdateInstanceConfig

func (_d LinodeClientWithTracing) UpdateInstanceConfig(ctx context.Context, linodeID int, configID int, opts linodego.InstanceConfigUpdateOptions) (ip1 *linodego.InstanceConfig, err error)

UpdateInstanceConfig implements clients.LinodeClient

func (LinodeClientWithTracing) UpdateObjectStorageBucketAccess added in v0.6.1

func (_d LinodeClientWithTracing) UpdateObjectStorageBucketAccess(ctx context.Context, clusterOrRegionID string, label string, opts linodego.ObjectStorageBucketUpdateAccessOptions) (err error)

UpdateObjectStorageBucketAccess implements clients.LinodeClient

func (LinodeClientWithTracing) UpdatePlacementGroup added in v0.6.0

func (_d LinodeClientWithTracing) UpdatePlacementGroup(ctx context.Context, id int, options linodego.PlacementGroupUpdateOptions) (pp1 *linodego.PlacementGroup, err error)

UpdatePlacementGroup implements clients.LinodeClient

Jump to

Keyboard shortcuts

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