Documentation
¶
Index ¶
- func CreatePullRequest(scm git.SCMClient, g git.Git) error
- func GetAvailableUpdates(catalogClient CatalogClient, catalogName, profileName, profileVersion string) ([]profilesv1.ProfileDescription, error)
- func Install(cfg InstallConfig) error
- func Search(catalogClient CatalogClient, searchName string) ([]profilesv1.ProfileDescription, error)
- func Show(catalogClient CatalogClient, catalogName, profileName, profileVersion string) (profilesv1.ProfileDescription, error)
- type CatalogClient
- type InstallConfig
- type MakeArtifacts
- type ProfileData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePullRequest ¶
func CreatePullRequest(scm git.SCMClient, g git.Git) error
CreatePullRequest creates a pull request from the current changes.
func GetAvailableUpdates ¶
func GetAvailableUpdates(catalogClient CatalogClient, catalogName, profileName, profileVersion string) ([]profilesv1.ProfileDescription, error)
GetAvailableUpdates queries the catalog at catalogURL for profiles which have greater versions than the current given one.
func Install ¶
func Install(cfg InstallConfig) error
Install using the catalog at catalogURL and a profile matching the provided profileName generates a profile subscription and its artifacts
Types ¶
type CatalogClient ¶
type CatalogClient interface {
DoRequest(path string, query map[string]string) ([]byte, int, error)
}
CatalogClient makes requests to the catalog service
type InstallConfig ¶
type InstallConfig struct {
CatalogClient CatalogClient
ProfileBranch string
CatalogName string
ConfigMap string
Namespace string
ProfileName string
SubName string
Version string
Directory string
URL string
Path string
}
InstallConfig defines parameters for the installation call.
type MakeArtifacts ¶
type MakeArtifacts func(sub profilesv1.ProfileSubscription) ([]profile.Artifact, error)
MakeArtifacts returns artifacts for a subscription
type ProfileData ¶
type ProfileData struct {
Profile subscription.SubscriptionSummary
AvailableVersionUpdates []string
}
ProfileData data containing profile and available version update for format printing.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.