generator

package
v2.13.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 25 Imported by: 1

Documentation

Index

Constants

View Source
const POD_PREFIX = "vcluster"

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationGenerator

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

func (*ApplicationGenerator) Clean

func (ag *ApplicationGenerator) Clean(opts *util.GenerateOpts) error

func (*ApplicationGenerator) Generate

func (pg *ApplicationGenerator) Generate(opts *util.GenerateOpts) error

type AuthInfo

type AuthInfo struct {
	ClientCertificateData string `yaml:"client-certificate-data,omitempty"`
	ClientKeyData         string `yaml:"client-key-data,omitempty"`
}

type Cluster

type Cluster struct {
	Server                   string `yaml:"server"`
	CertificateAuthorityData string `yaml:"certificate-authority-data,omitempty"`
}

type ClusterGenerator

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

func (*ClusterGenerator) Clean

func (cg *ClusterGenerator) Clean(opts *util.GenerateOpts) error

func (*ClusterGenerator) Generate

func (cg *ClusterGenerator) Generate(opts *util.GenerateOpts) error

type Config

type Config struct {
	Clusters  []NamedCluster  `yaml:"clusters"`
	AuthInfos []NamedAuthInfo `yaml:"users"`
}

type Generator

type Generator interface {
	Generate(opts *util.GenerateOpts) error
	Clean(opts *util.GenerateOpts) error
}

func NewApplicationGenerator

func NewApplicationGenerator(argoClientSet *appclientset.Clientset, clientSet *kubernetes.Clientset, db db.ArgoDB) Generator

func NewClusterGenerator

func NewClusterGenerator(db db.ArgoDB, clientSet *kubernetes.Clientset, config *rest.Config) Generator

func NewProjectGenerator

func NewProjectGenerator(clientSet *appclientset.Clientset) Generator

func NewRepoGenerator

func NewRepoGenerator(clientSet *kubernetes.Clientset) Generator

type NamedAuthInfo

type NamedAuthInfo struct {
	// Name is the nickname for this AuthInfo
	Name string `yaml:"name"`
	// AuthInfo holds the auth information
	AuthInfo AuthInfo `yaml:"user"`
}

type NamedCluster

type NamedCluster struct {
	// Name is the nickname for this Cluster
	Name string `yaml:"name"`
	// Cluster holds the cluster information
	Cluster Cluster `yaml:"cluster"`
}

type ProjectGenerator

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

func (*ProjectGenerator) Clean

func (pg *ProjectGenerator) Clean(opts *util.GenerateOpts) error

func (*ProjectGenerator) Generate

func (pg *ProjectGenerator) Generate(opts *util.GenerateOpts) error

type Repo

type Repo struct {
	Id  int    `json:"id"`
	Url string `json:"html_url"`
}

func FetchRepos

func FetchRepos(token string, samples int) ([]Repo, error)

type RepoGenerator

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

func (*RepoGenerator) Clean

func (rg *RepoGenerator) Clean(opts *util.GenerateOpts) error

func (*RepoGenerator) Generate

func (rg *RepoGenerator) Generate(opts *util.GenerateOpts) error

Jump to

Keyboard shortcuts

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