cluster

package
v0.0.1-0...-8535732 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Overview

Package cluster provides an implementation for the Cluster gRPC service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusterID

func GetClusterID(a Labeled) string

GetClusterID returns the Cluster ID if it exists.

func GetDescription

func GetDescription(a Annotated) string

GetDescription returns the description if it exists.

func GetEventID

func GetEventID(a Annotated) string

GetEventID returns the event ID if it exists.

func GetFlavor

func GetFlavor(a Annotated) string

GetFlavor returns the flavor ID if it exists.

func GetLifespan

func GetLifespan(a Annotated) *duration.Duration

GetLifespan returns the lifespan duration if it exists. If it does not exist, or is in an invalid format, a default 3 hours is returned.

func GetOwner

func GetOwner(a Annotated) string

GetOwner returns the owner email address if it exists.

func GetSlack

func GetSlack(a Annotated) string

GetSlack returns the Slack notification phase if it exists.

func GetSlackDM

func GetSlackDM(a Annotated) bool

GetSlackDM returns the Slack DM setting for the cluster.

func NewClusterService

func NewClusterService(registry *flavor.Registry, signer *signer.Signer, slackClient slack.Slacker, bqClient bqutil.BigQueryClient) (middleware.APIService, error)

NewClusterService creates a new ClusterService.

Types

type Annotated

type Annotated interface {
	GetAnnotations() map[string]string
}

Annotated represents a type that has annotations.

type Labeled

type Labeled interface {
	GetLabels() map[string]string
}

Labeled represents a type that has labels.

Jump to

Keyboard shortcuts

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