metalgo

package module
v0.39.4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 26 Imported by: 23

README

metal-go

Actions GoDoc Go Report Card codecov License

Metal Go API Client.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthType added in v0.9.2

func AuthType(authType string) option

AuthType sets the authType for HMAC-Auth

Types

type Client added in v0.18.1

type Client interface {
	Audit() audit.ClientService
	Filesystemlayout() filesystemlayout.ClientService
	Firewall() firewall.ClientService
	Firmware() firmware.ClientService
	Health() health.ClientService
	Image() image.ClientService
	IP() ip.ClientService
	Machine() machine.ClientService
	Network() network.ClientService
	Partition() partition.ClientService
	Project() project.ClientService
	Size() size.ClientService
	Sizeimageconstraint() sizeimageconstraint.ClientService
	SwitchOperations() switch_operations.ClientService
	Tenant() tenant.ClientService
	User() user.ClientService
	Version() version.ClientService
	VPN() vpn.ClientService
}

func NewDriver

func NewDriver(baseURL, bearer, hmacKey string, options ...option) (Client, error)

NewDriver Create a new Driver for Metal to given url. Either bearer OR hmacKey must be set. The returned *Driver will be deprecated at some point in time, please migrate to use the Client interface instead.

Jump to

Keyboard shortcuts

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