service

package
v1.24.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateWarnings added in v1.16.0

func CalculateWarnings(ctx context.Context, appName string, groups []*api.EnvironmentGroup) []*api.Warning

CalculateWarnings returns warnings for the User to be displayed in the UI. For really unusual configurations, these will be logged and not returned.

func TransformEnvironmentConfigToApi added in v1.24.0

func TransformEnvironmentConfigToApi(in config.EnvironmentConfig) *api.EnvironmentConfig

func ValidateApplication added in v1.16.0

func ValidateApplication(
	app string,
) error

func ValidateDeployment

func ValidateDeployment(
	env string,
	app string,
) error

func ValidateEnvironmentApplicationLock

func ValidateEnvironmentApplicationLock(
	actionType string,
	env string,
	app string,
	id string,
) error

func ValidateEnvironmentLock

func ValidateEnvironmentLock(
	actionType string,
	env string,
	id string,
) error

Types

type BatchServer

type BatchServer struct {
	Repository repository.Repository
	RBACConfig auth.RBACConfig
	Config     BatchServerConfig
}

func (*BatchServer) ProcessBatch

func (d *BatchServer) ProcessBatch(
	ctx context.Context,
	in *api.BatchRequest,
) (*api.BatchResponse, error)

type BatchServerConfig added in v1.22.0

type BatchServerConfig struct {
	WriteCommitData bool
}

type EnvironmentServiceServer

type EnvironmentServiceServer struct {
	Repository repository.Repository
}

func (*EnvironmentServiceServer) GetEnvironmentConfig added in v1.24.0

type GitServer added in v1.22.0

type GitServer struct {
	Config          repository.RepositoryConfig
	OverviewService *OverviewServiceServer
}

func (*GitServer) GetCommitInfo added in v1.22.0

func (*GitServer) GetEvents added in v1.22.0

func (s *GitServer) GetEvents(ctx context.Context, fs billy.Filesystem, commitPath string) ([]*api.Event, error)

func (*GitServer) GetGitTags added in v1.22.0

func (*GitServer) GetProductSummary added in v1.22.0

func (*GitServer) ReadEvent added in v1.22.0

func (s *GitServer) ReadEvent(ctx context.Context, fs billy.Filesystem, eventPath string, eventId timeuuid.UUID) (*api.Event, error)

type OverviewServiceServer

type OverviewServiceServer struct {
	Repository       repository.Repository
	RepositoryConfig repository.RepositoryConfig
	Shutdown         <-chan struct{}
	// contains filtered or unexported fields
}

func (*OverviewServiceServer) GetOverview

func (*OverviewServiceServer) StreamOverview

type Service

type Service struct {
	Repository repository.Repository
}

func (*Service) ServeHTTP

func (s *Service) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Service) ServeHTTPHealth

func (s *Service) ServeHTTPHealth(w http.ResponseWriter, r *http.Request)

type VersionServiceServer added in v1.16.0

type VersionServiceServer struct {
	Repository repository.Repository
}

func (*VersionServiceServer) GetVersion added in v1.16.0

Jump to

Keyboard shortcuts

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