Documentation ¶
Index ¶
- Constants
- type GetOptions
- type Options
- type ProfilesRetriever
- type ProfilesService
- type ProfilesSvc
- func (s *ProfilesSvc) Add(ctx context.Context, r ProfilesRetriever, gitProvider gitproviders.GitProvider, ...) error
- func (s *ProfilesSvc) Get(ctx context.Context, r ProfilesRetriever, w io.Writer) error
- func (s *ProfilesSvc) GetProfile(ctx context.Context, r ProfilesRetriever, opts GetOptions) (*pb.Profile, string, error)
- func (s *ProfilesSvc) Update(ctx context.Context, r ProfilesRetriever, gitProvider gitproviders.GitProvider, ...) error
Constants ¶
View Source
const AddCommitMessage = "Add profile manifests"
View Source
const (
// ManifestFileName contains the manifests of all installed Profiles
ManifestFileName = "profiles.yaml"
)
View Source
const UpdateCommitMessage = "Update profile manifests"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetOptions ¶
type ProfilesRetriever ¶ added in v0.8.1
type ProfilesRetriever interface { Source() string RetrieveProfiles() (*pb.GetProfilesResponse, error) }
type ProfilesService ¶ added in v0.7.0
type ProfilesService interface { // Add installs a profile on a cluster Add(ctx context.Context, gitProvider gitproviders.GitProvider, opts Options) error // Get lists all the available profiles in a cluster Get(ctx context.Context, opts GetOptions) error // Update updates a profile Update(ctx context.Context, gitProvider gitproviders.GitProvider, opts Options) error }
type ProfilesSvc ¶ added in v0.7.0
func NewService ¶ added in v0.7.0
func NewService(log logger.Logger) *ProfilesSvc
func (*ProfilesSvc) Add ¶ added in v0.7.0
func (s *ProfilesSvc) Add(ctx context.Context, r ProfilesRetriever, gitProvider gitproviders.GitProvider, opts Options) error
Add installs an available profile in a cluster's namespace by appending a HelmRelease to the profile manifest in the config repo, provided that such a HelmRelease does not exist with the same profile name and version in the same namespace and cluster.
func (*ProfilesSvc) Get ¶ added in v0.7.0
func (s *ProfilesSvc) Get(ctx context.Context, r ProfilesRetriever, w io.Writer) error
func (*ProfilesSvc) GetProfile ¶ added in v0.7.0
func (s *ProfilesSvc) GetProfile(ctx context.Context, r ProfilesRetriever, opts GetOptions) (*pb.Profile, string, error)
GetProfile returns a single available profile.
func (*ProfilesSvc) Update ¶ added in v0.7.0
func (s *ProfilesSvc) Update(ctx context.Context, r ProfilesRetriever, gitProvider gitproviders.GitProvider, opts Options) error
Update updates an installed profile
Click to show internal directories.
Click to hide internal directories.