pkg

package
v0.0.0-...-5889168 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DialogFlowWebhookPath = "/dialogflow/webhook"
)

Variables

This section is empty.

Functions

func AppendMessage

func AppendMessage(res *dfext.WebhookResponse, m string)

func NewKubeflowInfoServer

func NewKubeflowInfoServer(labelMapUri string) (*kubeflowInfoServer, error)

NewKubeflowInfoServer constructs an info server. labelMapUri is the path to the file mapping area labels to owners.

func Pformat

func Pformat(value interface{}) (string, error)

Pformat returns a pretty format output of any value.

Types

type HealthzResponse

type HealthzResponse struct {
	Reply string
}

type KubeflowLabels

type KubeflowLabels struct {
	Labels map[string]LabelInfo `json:"labels,omitempty"`
}

KubeflowLabels is a struct representing information about Kubeflow labels. We deserialize https://github.com/kubeflow/community/blob/master/labels-owners.yaml into this file.

func LoadLabels

func LoadLabels(labelMapUri string) (*KubeflowLabels, error)

LoadLabels loads the labels from the given URI. The URI can be any URI understood by hashi-corps go-getter.

func (*KubeflowLabels) GetLabelOwners

func (l *KubeflowLabels) GetLabelOwners(area string) []string

GetLabelOwners returns the owners of the given label. Returns an empty array if the label is unknown.

type LabelInfo

type LabelInfo struct {
	Owners []string `json:"owners,omitempty"`
}

LabelInfo provides information about a specific label.

type LabelServiceV1Alpha1

type LabelServiceV1Alpha1 interface {
	// GetLabelOwners returns a list of owners of the specified label.
	GetLabelOwners(label string) []string
}

LabelServiceV1Alpha1 defines an interface suitable for getting information about labels

Directories

Path Synopsis
kfgokit package contains some utilities for working with https://github.com/go-kit/kit
kfgokit package contains some utilities for working with https://github.com/go-kit/kit

Jump to

Keyboard shortcuts

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