apiutils

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 12 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrZoneNotFound   = fmt.Errorf("zone not found")
	ErrRecordNotFound = fmt.Errorf("record not found")
)

Functions

func GetRecordFromZoneID added in v0.6.0

func GetRecordFromZoneID(ctx context.Context, cl api.ClientInterface, zoneID string, recordName string, rrtype zones.Type) (*zones.Record, error)

func GetRecordFromZoneName added in v0.5.0

func GetRecordFromZoneName(ctx context.Context, cl api.ClientInterface, zonename string, recordName string, rrtype zones.Type) (*zones.Record, error)

func GetZoneFromServiceCode added in v0.6.2

func GetZoneFromServiceCode(ctx context.Context, cl api.ClientInterface, serviceCode string) (*core.Zone, error)

func GetZoneFromZonename added in v0.5.0

func GetZoneFromZonename(ctx context.Context, cl api.ClientInterface, zonename string) (*core.Zone, error)

func GetZoneIDFromZonename added in v0.6.0

func GetZoneIDFromZonename(ctx context.Context, cl api.ClientInterface, zonename string) (string, error)

func GetZoneIdFromServiceCode added in v0.6.2

func GetZoneIdFromServiceCode(ctx context.Context, cl api.ClientInterface, serviceCode string) (string, error)

func ParseeResourceID added in v0.6.1

func ParseeResourceID(job *core.Job) (int64, error)

func ParseeResourceSystemID added in v0.6.1

func ParseeResourceSystemID(job *core.Job) (string, error)

func SyncApply added in v0.5.0

func SyncApply(ctx context.Context, cl api.ClientInterface, s api.Spec, body interface{}) (string, *core.Job, error)

func SyncCancel added in v0.5.0

func SyncCancel(ctx context.Context, cl api.ClientInterface, s api.Spec) (string, *core.Job, error)

func SyncCreate added in v0.5.0

func SyncCreate(ctx context.Context, cl api.ClientInterface, s api.Spec, body interface{}) (string, *core.Job, error)

func SyncDelete added in v0.5.0

func SyncDelete(ctx context.Context, cl api.ClientInterface, s api.Spec) (string, *core.Job, error)

func SyncUpdate added in v0.5.0

func SyncUpdate(ctx context.Context, cl api.ClientInterface, s api.Spec, body interface{}) (string, *core.Job, error)

func WaitJob

func WaitJob(ctx context.Context, c api.ClientInterface, jobID string, interval time.Duration) (*core.Job, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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