util

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RandomAPIModelName func() string = randomName

Produces a random name for an API model.

View Source
var RandomLearnSessionName func() string = randomName

Produces a random name for a learning session.

Functions

func DaemonHeartbeat added in v0.14.0

func DaemonHeartbeat(c rest.FrontClient, daemonName string) error

func GetLearnSessionIDByName

func GetLearnSessionIDByName(c rest.LearnClient, name string) (akid.LearnSessionID, error)

func GetServiceIDByName

func GetServiceIDByName(c rest.FrontClient, name string) (akid.ServiceID, error)

func LongPollActiveTracesForService added in v0.14.0

func LongPollActiveTracesForService(c rest.FrontClient, daemonName string, serviceID akid.ServiceID, currentTraces []akid.LearnSessionID) (daemon.ActiveTraceDiff, error)

Long-polls the cloud for changes to the set of active traces for a service.

func NewLearnSession

func NewLearnSession(domain string, clientID akid.ClientID, svc akid.ServiceID, sessionName string, tags map[tags.Key]string, baseSpecRef *kgxapi.APISpecReference) (akid.LearnSessionID, error)

func ResolveSpecURI added in v0.12.0

func ResolveSpecURI(lc rest.LearnClient, uri akiuri.URI) (akid.APISpecID, error)

Types

type ExitError

type ExitError struct {
	ExitCode int
	Err      error
}

func (ExitError) Error

func (ee ExitError) Error() string

Jump to

Keyboard shortcuts

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