buildchange

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

func Log(logger *log.Logger, changesStr string) error

func NewChangeLogger

func NewChangeLogger(logger *log.Logger, changesStr string) *changeLogger

Types

type Change

type Change interface {
	Reason() buildapi.BuildReason
	IsBuildRequired() (bool, error)
	Old() interface{}
	New() interface{}
	Priority() buildapi.BuildPriority
}

func NewBuildpackChange

func NewBuildpackChange(oldBuildpacks, newBuildpacks []corev1alpha1.BuildpackInfo) Change

func NewCommitChange

func NewCommitChange(oldRevision, newRevision string) Change

func NewConfigChange

func NewConfigChange(oldConfig, newConfig Config) Change

func NewStackChange

func NewStackChange(oldRunImageRefStr, newRunImageRefStr string) Change

func NewTriggerChange

func NewTriggerChange(dateStr string) Change

type ChangeProcessor

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

func NewChangeProcessor

func NewChangeProcessor() *ChangeProcessor

func (*ChangeProcessor) Process

func (c *ChangeProcessor) Process(change Change) *ChangeProcessor

func (*ChangeProcessor) Summarize

func (c *ChangeProcessor) Summarize() (ChangeSummary, error)

type ChangeSummary

type ChangeSummary struct {
	HasChanges bool
	ReasonsStr string
	ChangesStr string
	Priority   buildapi.BuildPriority
}

func NewChangeSummary

func NewChangeSummary(hasChanges bool, reasonsStr, changesStr string, priority buildapi.BuildPriority) (ChangeSummary, error)

func (ChangeSummary) IsValid

func (c ChangeSummary) IsValid() bool

type Config

type Config struct {
	Env         []corev1.EnvVar             `json:"env,omitempty"`
	Resources   corev1.ResourceRequirements `json:"resources,omitempty"`
	Services    buildapi.Services           `json:"services,omitempty"`
	CNBBindings corev1alpha1.CNBBindings    `json:"cnbBindings,omitempty"`
	Source      corev1alpha1.SourceConfig   `json:"source,omitempty"`
}

type GenericChange

type GenericChange struct {
	Reason   string                 `json:"reason,omitempty"`
	Old      interface{}            `json:"old,omitempty"`
	New      interface{}            `json:"new,omitempty"`
	Priority buildapi.BuildPriority `json:"-"`
}

Jump to

Keyboard shortcuts

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