apiutils

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: MIT Imports: 12 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 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 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