Documentation ¶
Overview ¶
Package cluster provides an implementation for the Cluster gRPC service.
Index ¶
- func GetClusterID(a Labeled) string
- func GetDescription(a Annotated) string
- func GetEventID(a Annotated) string
- func GetFlavor(a Annotated) string
- func GetLifespan(a Annotated) *duration.Duration
- func GetOwner(a Annotated) string
- func GetSlack(a Annotated) string
- func GetSlackDM(a Annotated) bool
- func NewClusterService(registry *flavor.Registry, signer *signer.Signer, slackClient slack.Slacker, ...) (middleware.APIService, error)
- type Annotated
- type Labeled
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClusterID ¶
GetClusterID returns the Cluster ID if it exists.
func GetDescription ¶
GetDescription returns the description if it exists.
func GetLifespan ¶
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 GetSlackDM ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.