controller

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonController

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

func NewCommonController

func NewCommonController(
	logger *slog.Logger,
	slackFactory infra_slack.SlackClientFactory,
) *CommonController

func (*CommonController) InteractionCancel

func (c *CommonController) InteractionCancel(ctx context.Context, interaction slack.InteractionCallback, client *socketmode.Client) error

func (*CommonController) InteractionNothingToDo

func (c *CommonController) InteractionNothingToDo(ctx context.Context, interaction slack.InteractionCallback, client *socketmode.Client) error

func (*CommonController) ShowCommands

func (c *CommonController) ShowCommands(ctx context.Context,
	ev *slackevents.AppMentionEvent,
	client *socketmode.Client, subcommands map[string]string,
) error

func (*CommonController) ShowVersion

type EmtecController

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

func NewEmtecController

func NewEmtecController(
	logger *slog.Logger,
	slackFactory infra_slack.SlackClientFactory,
	cndClient *infra_cnd.CndWrapper,
) *EmtecController

func (*EmtecController) DisableAutomation

func (c *EmtecController) DisableAutomation(ctx context.Context, ev *slackevents.AppMentionEvent, client *socketmode.Client) error

func (*EmtecController) EnableAutomation

func (c *EmtecController) EnableAutomation(ctx context.Context, ev *slackevents.AppMentionEvent, client *socketmode.Client) error

func (*EmtecController) ListTrack

func (*EmtecController) UpdateSceneToNext

func (c *EmtecController) UpdateSceneToNext(ctx context.Context, interaction slack.InteractionCallback, client *socketmode.Client) error

type ReleaseController

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

func NewReleaseController

func NewReleaseController(
	logger *slog.Logger,
	slackFactory infra_slack.SlackClientFactory,
	gitcommand gitcommand.GitCommandClient,
	githubapi githubapi.GitHubApiClient,
	targets []Target,
) *ReleaseController

func (*ReleaseController) CreatePullRequestForRelease

func (c *ReleaseController) CreatePullRequestForRelease(ctx context.Context, interaction slack.InteractionCallback, client *socketmode.Client) error

func (*ReleaseController) SelectConfirmation

func (c *ReleaseController) SelectConfirmation(ctx context.Context, interaction slack.InteractionCallback, client *socketmode.Client) error

func (*ReleaseController) SelectReleaseLevel

func (c *ReleaseController) SelectReleaseLevel(ctx context.Context, interaction slack.InteractionCallback, client *socketmode.Client) error

func (*ReleaseController) SelectRepository

func (c *ReleaseController) SelectRepository(ctx context.Context, ev *slackevents.AppMentionEvent, client *socketmode.Client) error

type Target

type Target struct {
	Url        string
	BaseBranch string
}

Jump to

Keyboard shortcuts

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