gitrepocontroller

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

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

Go to latest
Published: May 6, 2022 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithKubeconfig

func WithKubeconfig(kubeconfig []byte) gitRepoConfigOpt

Types

type GitRepoConfig

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

func NewGitRepoConfig

func NewGitRepoConfig(fns ...gitRepoConfigOpt) (*GitRepoConfig, error)

gitRepoCfg := lib.NewGitRepoConfig(

lib.WithKubeconfig(kc),
lib.WithFoobar(fb),

)

func (*GitRepoConfig) CreateOrUpdate

func (g *GitRepoConfig) CreateOrUpdate(gr *api.GitRepository) error

func (*GitRepoConfig) Delete

func (g *GitRepoConfig) Delete(gr *api.GitRepository) error

func (*GitRepoConfig) Get

func (g *GitRepoConfig) Get(name, ns string) (*api.GitRepository, error)

func (*GitRepoConfig) List

func (g *GitRepoConfig) List(listOpts *client.ListOptions) (*api.GitRepositoryList, error)

Jump to

Keyboard shortcuts

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