Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallProfile ¶
func InstallProfile(ctx context.Context, path string, options *InstallOptions) error
InstallProfile will generate the HelmRelease for a profile.
TODO: could this take a git.Repository?
Types ¶
type Client ¶
Client implementations access git hosts to fetch files.
func RawGitHubClientFactory ¶
RawGitHubClientFactory is a very simple client that only supports fetching via github.com (and only unauthenticated requests).
type ClientError ¶
ClientError is an error from Client implementations.
func NewClientError ¶
func NewClientError(code int, message string) ClientError
NewClientError creates and returns a new Git client error.
func (ClientError) Error ¶
func (c ClientError) Error() string
type ClientFactory ¶
ClientFactory implementations should return a Client interface ready to be used to access the provided repoURL.
var DefaultClientFactory ClientFactory = RawGitHubClientFactory
DefaultClientFactory is the default client factory implementation.
type InstallOptions ¶
type InstallOptions struct { *profiles.ProfileOptions NewBranchName string }
InstallOptions are passed to the install operation to provide information for bootstrappign resources.
type RawGitHubClient ¶
RawGitHubClient is a very naive client that fetches files via raw.githubusercontent.com, without authentication.
func NewRawGitHubClient ¶
func NewRawGitHubClient(c *http.Client) *RawGitHubClient
NewRawGitHubClient returns an implementation of the client that can fetch using the raw GitHub access.
This will not work for authenticated requests, or anything other than GitHub.
func (RawGitHubClient) FileContents ¶
FileContents implements the Client interface.