component

package
v0.0.0-...-8dcefb9 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGitURL

func GetGitURL(comp *appstudiov1alpha1.Component) (string, bool, error)

GetGitURL returns the git URL for the component It supports both the old and new component models It returns a boolean indicating if the component is using the old model

func GetVersions

func GetVersions(comp *appstudiov1alpha1.Component) []string

Types

type GitComponent

type GitComponent interface {
	GetName() string
	GetNamespace() string
	GetApplication() string
	GetPlatform() string
	GetHost() string
	GetGitURL() string
	GetRepository() string
	GetToken() (string, error)
	GetBranches() ([]string, error)
	GetAPIEndpoint() string
	GetRenovateConfig(*corev1.Secret, string) (string, error)
	GetRPMActivationKey(context.Context, client.Client) (string, string, error)
}

func NewGitComponent

func NewGitComponent(ctx context.Context, comp *appstudiov1alpha1.Component, client client.Client) (GitComponent, error)

type GitComponentFactory

type GitComponentFactory func(ctx context.Context, comp *appstudiov1alpha1.Component, client client.Client) (GitComponent, error)

GitComponentFactory is a function that creates a GitComponent from a Kubernetes Component resource.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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