server

package module
v0.0.0-...-6aa8790 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SystemClock util.Clock = util.NewSystemClock()

Functions

func Factory

func Factory(ctx context.Context, conf *logical.BackendConfig) (logical.Backend, error)

func GetTrdlChannelsConfig

func GetTrdlChannelsConfig(gitRepo *git.Repository, trdlChannelsPath string) (*config.TrdlChannels, error)

func NewErrIncorrectChannelName

func NewErrIncorrectChannelName(chnl string) error

func NewErrPublishingNonExistingReleases

func NewErrPublishingNonExistingReleases(releases []string) error

func ValidatePublishConfig

func ValidatePublishConfig(ctx context.Context, publisher publisher.Interface, publisherRepository publisher.RepositoryInterface, config *config.TrdlChannels, logger hclog.Logger) error

func ValidateReleaseVersion

func ValidateReleaseVersion(releaseVersion string) error

Types

type Backend

type Backend struct {
	*framework.Backend
	TasksManager    tasks_manager.ActionsInterface
	Publisher       publisher.Interface
	BackendPeriodic BackendPeriodicInterface
}

func NewBackend

func NewBackend(logger hclog.Logger) (*Backend, error)

func (*Backend) InitPaths

func (b *Backend) InitPaths(modules ...BackendModuleInterface)

func (*Backend) InitPeriodicFunc

func (b *Backend) InitPeriodicFunc(modules ...BackendModuleInterface)

func (*Backend) Periodic

func (b *Backend) Periodic(ctx context.Context, req *logical.Request) error

type BackendModuleInterface

type BackendModuleInterface interface {
	Paths() []*framework.Path
	PeriodicFunc(ctx context.Context, req *logical.Request) error
}

type BackendPeriodicInterface

type BackendPeriodicInterface interface {
	Periodic(ctx context.Context, req *logical.Request) error
}

Jump to

Keyboard shortcuts

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