controller

package
v0.0.0-...-35c0fb1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerContext

type ControllerContext struct {
	// contains filtered or unexported fields
}

func NewControllerContext

func NewControllerContext(newBugzillaClient func(debug bool) cache.BugzillaClient, slackClient, slackDebugClient slack.ChannelClient, slackerInstance *slacker.Slacker, cmClient corev1client.ConfigMapInterface) ControllerContext

func (*ControllerContext) GetPersistentValue

func (c *ControllerContext) GetPersistentValue(ctx context.Context, key string) (string, error)

func (*ControllerContext) NewBugzillaClient

func (c *ControllerContext) NewBugzillaClient(ctx context.Context) cache.BugzillaClient

func (*ControllerContext) SetPersistentValue

func (c *ControllerContext) SetPersistentValue(ctx context.Context, key, value string) error

func (*ControllerContext) SlackClient

func (c *ControllerContext) SlackClient(ctx context.Context) slack.ChannelClient

func (*ControllerContext) SubscribeBlockAction

func (c *ControllerContext) SubscribeBlockAction(blockId string, f func(ctx context.Context, message *slackgo.Container, user *slackgo.User, action *slackgo.BlockAction)) error

Jump to

Keyboard shortcuts

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