profile

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProfilePathFromSpec

func GetProfilePathFromSpec(spec profilesv1.ProfileSubscriptionSpec) string

GetProfilePathFromSpec returns either the path to the profile in the repo. Extracted from the version field or directly from path

func SanitiseBranchName

func SanitiseBranchName(branch string) string

SanitiseBranchName makes the branch domain name friendly.

Types

type Artifact

type Artifact struct {
	Objects []runtime.Object
	Name    string
}

Artifact contains the name and objects belonging to a profile artifact

func MakeArtifacts

func MakeArtifacts(sub profilesv1.ProfileSubscription) ([]Artifact, error)

MakeArtifacts generates artifacts without owners for manual applying to a personal cluster.

type Profile

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

Profile contains information and interfaces required for creating and managing profile artefacts (child resources)

type ProfileGetter

type ProfileGetter func(repoURL, branch, path string) (profilesv1.ProfileDefinition, error)

ProfileGetter is a func that can fetch a profile definition

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳