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.
Click to show internal directories.
Click to hide internal directories.