api

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

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

func New

func New(hostInfoHandler handler.HostInfoHandler, hostResourceHandler handler.HostResourceHandler, mDNSAdvHdl handler.MDNSAdvHandler) *Api

func (*Api) AddMDNSAdv added in v0.1.0

func (a *Api) AddMDNSAdv(ctx context.Context, serviceGroup model.ServiceGroup) error

func (*Api) DeleteMDNSAdv added in v0.1.0

func (a *Api) DeleteMDNSAdv(ctx context.Context, id string) error

func (*Api) GetHostInfo

func (a *Api) GetHostInfo(ctx context.Context) (model.HostInfo, error)

func (*Api) GetHostNet

func (a *Api) GetHostNet(ctx context.Context) (model.HostNet, error)

func (*Api) GetHostResource added in v0.1.0

func (a *Api) GetHostResource(ctx context.Context, rID string) (model.HostResource, error)

func (*Api) GetMDNSAdv added in v0.1.0

func (a *Api) GetMDNSAdv(ctx context.Context, id string) (model.ServiceGroup, error)

func (*Api) ListHostResources added in v0.1.0

func (a *Api) ListHostResources(ctx context.Context, filter model.HostResourceFilter) ([]model.HostResource, error)

func (*Api) ListMDNSAdv added in v0.1.0

func (a *Api) ListMDNSAdv(ctx context.Context, filter model.ServiceGroupFilter) ([]model.ServiceGroup, error)

func (*Api) UpdateMDNSAdv added in v0.1.0

func (a *Api) UpdateMDNSAdv(ctx context.Context, serviceGroup model.ServiceGroup) error

Jump to

Keyboard shortcuts

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