controller

package
v0.0.0-...-69c2794 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 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 BuildImageParams

type BuildImageParams struct {
	Organization  string
	Repository    string
	Branch        string
	PullRequestID string
	GitLink       string
	Token         string

	Config models.PullRequestConfig
}

type CreatePreviewEnvironmentParams

type CreatePreviewEnvironmentParams struct {
	Organization string
	Repository   string
	PrNumber     int
	Branch       string
	GitLink      string

	GhInstallID int64
	GhClient    github.GitHubClientInteractor
	Config      models.PullRequestConfig
}

CreatePreviewEnvironmentParams はプレビュー環境を作成するためのパラメータです。

type DeletePreviewEnvironmentParams

type DeletePreviewEnvironmentParams struct {
	Organization string
	Repository   string
	PrNumber     string
	Branch       string
}

type GithubAppEvents

type GithubAppEvents interface {
	CreateNameSpace(ctx context.Context, organization string) error
	ListNameSpace(ctx context.Context, prefix string) ([]string, error)
	DeleteNameSpace(ctx context.Context, name string) error

	CreatePreviewEnvironment(ctx context.Context, param CreatePreviewEnvironmentParams) error
	DeletePreviewEnvironment(ctx context.Context, param DeletePreviewEnvironmentParams) error
	UpdatePreviewEnvironment(ctx context.Context, param UpdatePreviewEnvironmentParams) error
}

githubAppEvents はGithubAppのインタラクターのインターフェースです。

func New

func New(
	customController v1.K8SCustomControllerClient,
	opts ...Option,
) GithubAppEvents

New は新しいGithubAppのインタラクターを作成します。

type Option

type Option func(*githubAppEvents)

Option はサーバーのオプションを設定するための関数です。

func WithLogger

func WithLogger(l *slog.Logger) Option

WithLogger はロガーを設定するオプションです。

type UpdatePreviewEnvironmentParams

type UpdatePreviewEnvironmentParams struct {
	Organization string
	Repository   string
	PrNumber     int
	Branch       string
	GitLink      string
	GhInstallID  int64

	Config   models.PullRequestConfig
	GhClient github.GitHubClientInteractor
}

Jump to

Keyboard shortcuts

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