services

package
v0.107.3 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 31 Imported by: 0

Documentation

Overview

Copyright (C) 2021-2023, Kubefirst

This program is licensed under MIT. See the LICENSE file for more details.

This program is licensed under MIT. See the LICENSE file for more details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDefaultServices

func AddDefaultServices(cl *pkgtypes.Cluster) error

AddDefaultServices

func CreateService

func CreateService(cl *pkgtypes.Cluster, serviceName string, appDef *pkgtypes.GitopsCatalogApp, req *pkgtypes.GitopsCatalogAppCreateRequest, excludeArgoSync bool) error

CreateService

func DeleteService

func DeleteService(cl *pkgtypes.Cluster, serviceName string, def pkgtypes.GitopsCatalogAppDeleteRequest) error

DeleteService

func DetokenizeConfigKeys

func DetokenizeConfigKeys(serviceFilePath string, configKeys []pkgtypes.GitopsCatalogAppKeys) error

func ValidateService

func ValidateService(cl *pkgtypes.Cluster, serviceName string, def *pkgtypes.GitopsCatalogAppCreateRequest) (bool, error)

ValidateService

Types

type GitHubService

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

func NewGitHubService

func NewGitHubService(httpClient pkg.HTTPDoer) *GitHubService

NewGitHubService instantiate a new GitHub service

func (GitHubService) CheckUserCodeConfirmation

func (service GitHubService) CheckUserCodeConfirmation(deviceCode string) (string, error)

CheckUserCodeConfirmation checks if the user gave permission to the device flow request

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL