services

package
v0.0.0-...-9b0980c Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2020 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dir

func Dir(src string, dst string) error

Dir copies a whole directory recursively

func File

func File(src, dst string) error

File copies a single file from src to dst

func GetAllCatalogEntryPackage

func GetAllCatalogEntryPackage() ([]*apiModel.CatalogEntryPackage, error)

func GetAllCatalogEntryPackageVersionVersions

func GetAllCatalogEntryPackageVersionVersions(providerId string) ([]*apiModel.CatalogEntryPackageVersion, error)

func GetCatalogEntryPackage

func GetCatalogEntryPackage(providerId string) (*apiModel.CatalogEntryPackage, error)

func GetCatalogEntryPackageVersionFromProviderId

func GetCatalogEntryPackageVersionFromProviderId(providerId string, version string) (*apiModel.CatalogEntryPackageVersion, error)

func GetConstraintFromKey

func GetConstraintFromKey(t apiModel.PackageTemplate, key string) string

Types

type ChartYaml

type ChartYaml struct {
	Icon        string   `yaml:"icon"`
	Home        string   `yaml:"home"`
	Sources     []string `yaml:"sources"`
	Description string   `yaml:"description"`
	Keywords    []string `yaml:"keywords"`
}

func ChartYamlFromChart

func ChartYamlFromChart(providerId string, version string) (*ChartYaml, error)

type HelmCatalogRepository

type HelmCatalogRepository struct {
	Name     string `json:"name,omitempty"`
	Url      string `json:"url,omitempty"`
	Username string `json:"usernmae,omitempty"`
	Password string `json:"password,omitempty"`
}

func HelmRepoList

func HelmRepoList() ([]*HelmCatalogRepository, error)

type HelmEntry

type HelmEntry struct {
	Name          string
	LocalName     string
	VersionChart  string
	VersionApp    string
	Description   string
	RepositoryURL string
	ChartYaml     *ChartYaml
}

func HelmSearchFromVersionInMemory

func HelmSearchFromVersionInMemory(localName string, version string) ([]*HelmEntry, error)

func HelmSearchInMemory

func HelmSearchInMemory(localName string, allversion bool) ([]*HelmEntry, error)

type HelmService

type HelmService struct {
	Repositories []*HelmCatalogRepository
}

func GetHelmServiceInstance

func GetHelmServiceInstance() *HelmService

func NewHelmService

func NewHelmService() *HelmService

func (*HelmService) HelmAddRepository

func (svc *HelmService) HelmAddRepository(catalogRepository *HelmCatalogRepository) error

func (*HelmService) HelmFindLocalRepository

func (svc *HelmService) HelmFindLocalRepository(catalogRepository *HelmCatalogRepository) (string, error)

func (*HelmService) HelmLoadAllInMemory

func (svc *HelmService) HelmLoadAllInMemory()

func (*HelmService) HelmUpdate

func (svc *HelmService) HelmUpdate() error

func (*HelmService) UpdateFromResourceManager

func (svc *HelmService) UpdateFromResourceManager()

type KeycloakAuthService

type KeycloakAuthService struct {
	Host         string
	Realm        string
	Username     string
	Password     string
	ClientID     string
	ClientSecret string
	Token        *KeycloakAuthServiceToken
}

func GetKeycloakAuthServiceInstance

func GetKeycloakAuthServiceInstance() *KeycloakAuthService

func NewKeycloakAuthServiceFromEnvVar

func NewKeycloakAuthServiceFromEnvVar() *KeycloakAuthService

func (*KeycloakAuthService) GetToken

func (svc *KeycloakAuthService) GetToken() (string, error)

type KeycloakAuthServiceToken

type KeycloakAuthServiceToken struct {
	Token    string
	ExpireAt int64
}

type ResourceManagerService

type ResourceManagerService struct {
	AuthInfo             *openApiRtClient.Runtime
	ClientAuthInfoWriter openApiRt.ClientAuthInfoWriter
	Formats              strfmt.Registry
	Config               *apiClient.TransportConfig
	KeycloakService      *KeycloakAuthService
}

func NewResourceManagerService

func NewResourceManagerService() ResourceManagerService

type TemplateService

type TemplateService interface {
	GetConstraintFromKey(t apiModel.PackageTemplate, key string) string
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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