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)
Click to show internal directories.
Click to hide internal directories.