catalog

package
v0.0.0-...-a47ff7f Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Copyright (C) 2021-2023, Kubefirst

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

Index

Constants

View Source
const (
	KubefirstGitHubOrganization      = "kubefirst"
	KubefirstGitopsCatalogRepository = "gitops-catalog"
)

Variables

This section is empty.

Functions

func NewGitHub

func NewGitHub() *git.Client

NewGitHub instantiates an unauthenticated GitHub client

func ReadActiveApplications

func ReadActiveApplications() (apiTypes.GitopsCatalogApps, error)

func ValidateCatalogApps

func ValidateCatalogApps(catalogApps string) (bool, []apiTypes.GitopsCatalogApp, error)

Types

type GitHubClient

type GitHubClient struct {
	Client *git.Client
}

func (*GitHubClient) ReadGitopsCatalogIndex

func (gh *GitHubClient) ReadGitopsCatalogIndex(contents []*git.RepositoryContent) ([]byte, error)

ReadGitopsCatalogIndex reads the gitops catalog repository index

func (*GitHubClient) ReadGitopsCatalogRepoContents

func (gh *GitHubClient) ReadGitopsCatalogRepoContents() ([]*git.RepositoryContent, error)

Jump to

Keyboard shortcuts

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