Documentation ¶
Index ¶
- Constants
- type GetOptions
- type Options
- type ProfilesService
- type ProfilesSvc
- func (s *ProfilesSvc) Add(ctx context.Context, gitProvider gitproviders.GitProvider, opts Options) error
- func (s *ProfilesSvc) Get(ctx context.Context, opts GetOptions) error
- func (s *ProfilesSvc) GetProfile(ctx context.Context, opts GetOptions) (*pb.Profile, string, error)
- func (s *ProfilesSvc) Update(ctx context.Context, gitProvider gitproviders.GitProvider, opts Options) 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 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
type ProfilesSvc struct { ClientSet kubernetes.Interface Logger logger.Logger }
func NewService ¶ added in v0.7.0
func NewService(clientSet kubernetes.Interface, log logger.Logger) *ProfilesSvc
func (*ProfilesSvc) Add ¶ added in v0.7.0
func (s *ProfilesSvc) Add(ctx context.Context, 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, opts GetOptions) error
Get returns a list of available profiles.
func (*ProfilesSvc) GetProfile ¶ added in v0.7.0
func (s *ProfilesSvc) GetProfile(ctx context.Context, 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, gitProvider gitproviders.GitProvider, opts Options) error
Update updates an installed profile
Click to show internal directories.
Click to hide internal directories.