spec

package
v0.0.1-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func DefaultNetworkInput

func DefaultNetworkInput() *types.NetworkInput

func DefaultRegistryIn

func DefaultRegistryIn() *types.ApplicationInput

func DefaultVolumeInput

func DefaultVolumeInput() *types.VolumeCreateInput

func DefaultVolumes

func DefaultVolumes() []*types.VolumeMounts

func DetectName

func DetectName(spec *types.ApplicationSpec) string

func GetBuilder

func GetBuilder(spec *types.ApplicationSpec) enum.BuilderType

func GetGitRepoUrl

func GetGitRepoUrl(spec *types.ApplicationSpec) string

func GetImage

func GetImage(app *types.Application, deployment *types.Deployment, config *config.PipelineConfig) (buildImage, pullImage, cacheImage string)

func GetSourceIcon

func GetSourceIcon(app *types.Application) string

Web switchers

func GetSourceText

func GetSourceText(app *types.Application) string

func IsStateful

func IsStateful(spec *types.ApplicationSpec) bool

func IsStateless

func IsStateless(spec *types.ApplicationSpec) bool

func NeedsBuild

func NeedsBuild(spec *types.ApplicationSpec) bool

Pipeline step controller

func NeedsInit

func NeedsInit(spec *types.ApplicationSpec) bool

Types

type Service

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

func NewService

func NewService(
	ghAppSvc *githubapp.Service,
	gitpublicSvc *gitpublic.Service,
) *Service

func ProvideSpecService

func ProvideSpecService(
	ghAppSvc *githubapp.Service,
	gitpublicSvc *gitpublic.Service,
) *Service

func (*Service) DefaultGitIn

func (s *Service) DefaultGitIn() *types.ApplicationInput

func (*Service) GetCurrentTag

func (s *Service) GetCurrentTag(ctx context.Context, app *types.Application) (string, error)

func (*Service) GetLatestTag

func (s *Service) GetLatestTag(ctx context.Context, app *types.Application) (string, error)

func (*Service) GetVolumeMounts

func (s *Service) GetVolumeMounts(spec *types.ApplicationSpec) []*types.VolumeMounts

func (*Service) ToApplication

func (s *Service) ToApplication(ctx context.Context, in *types.ApplicationInput, application *types.Application) (*types.Application, error)

Application input mapper example

func (*Service) ToBuildConfigration

func (s *Service) ToBuildConfigration(ctx context.Context, in *types.ApplicationInput, application *types.Application) (*types.BuildConfiguration, error)

func (*Service) ToDeployConfigration

func (s *Service) ToDeployConfigration(in *types.ApplicationInput, application *types.Application) (*types.DeployConfiguration, error)

func (*Service) ToGeneralSettings

func (s *Service) ToGeneralSettings(in *types.ApplicationInput, application *types.Application, spec *types.ApplicationSpec)

func (*Service) ToNetworks

func (s *Service) ToNetworks(in *types.ApplicationInput, application *types.Application) (*types.NetworkConfiguration, error)

func (*Service) ToServiceDomain

func (*Service) ToVolumes

func (s *Service) ToVolumes(in *types.ApplicationInput, application *types.Application) ([]*types.VolumeMounts, error)

func (*Service) UpdateDefaults

func (s *Service) UpdateDefaults(in *types.ApplicationInput, spec *types.ApplicationSpec)

Jump to

Keyboard shortcuts

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