releases

package
v2.25.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComponentMetadataFilename = "component_metadata.yaml"
)

Variables

This section is empty.

Functions

func NewAction

func NewAction(opts ...ActionOpts) actions.Fn

Types

type Action

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

type ActionOpts

type ActionOpts func(*Action)

func WithComponentReleaseStatus

func WithComponentReleaseStatus(status []common.ComponentRelease) ActionOpts

WithComponentReleaseStatus allows setting a custom ComponentRelease for the action. This is mostly for testing purposes to simulate cached or pre-existing release statuses. In production scenarios, the action should fetch the current release status from the source rather than being manually set.

func WithMetadataFilePath

func WithMetadataFilePath(filePath string) ActionOpts

WithMetadataFilePath is an ActionOpts function that sets a custom metadata file path.

Jump to

Keyboard shortcuts

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