api

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 8 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(coreServiceHandler handler.CoreServiceHandler, gwEndpointHdl handler.GatewayEndpointHandler, jobHandler job_hdl.JobHandler, srvInfoHandler srv_info_hdl.SrvInfoHandler) *Api

func (*Api) AddDefaultGuiEndpoint added in v0.0.2

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

func (*Api) AddEndpoint added in v0.0.2

func (a *Api) AddEndpoint(ctx context.Context, endpoint lib_model.EndpointBase) (string, error)

func (*Api) AddEndpointAlias added in v0.0.2

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

func (*Api) AddEndpoints

func (a *Api) AddEndpoints(ctx context.Context, endpoints []lib_model.EndpointBase) (string, error)

func (*Api) CancelJob

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

func (*Api) GetCoreService added in v0.1.0

func (a *Api) GetCoreService(ctx context.Context, name string) (model.CoreService, error)

func (*Api) GetCoreServices added in v0.1.0

func (a *Api) GetCoreServices(ctx context.Context) (map[string]model.CoreService, error)

func (*Api) GetEndpoint added in v0.0.2

func (a *Api) GetEndpoint(ctx context.Context, id string) (lib_model.Endpoint, error)

func (*Api) GetEndpoints added in v0.0.2

func (a *Api) GetEndpoints(ctx context.Context, filter lib_model.EndpointFilter) (map[string]lib_model.Endpoint, error)

func (*Api) GetJob

func (a *Api) GetJob(ctx context.Context, id string) (job_hdl_lib.Job, error)

func (*Api) GetJobs

func (a *Api) GetJobs(ctx context.Context, filter job_hdl_lib.JobFilter) ([]job_hdl_lib.Job, error)

func (*Api) GetSrvInfo added in v0.5.0

func (a *Api) GetSrvInfo(_ context.Context) srv_info_lib.SrvInfo

func (*Api) RemoveEndpoint

func (a *Api) RemoveEndpoint(ctx context.Context, id string, restrictStd bool) (string, error)

func (*Api) RemoveEndpoints

func (a *Api) RemoveEndpoints(ctx context.Context, filter lib_model.EndpointFilter, restrictStd bool) (string, error)

func (*Api) RestartCoreService added in v0.1.0

func (a *Api) RestartCoreService(ctx context.Context, name string) (string, error)

Jump to

Keyboard shortcuts

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