gitops

package
v1.0.0-rc07 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PushResult

type PushResult struct {
	GitDir     string
	RemoteName string
	RemoteURL  string
	Branch     string
}

PushResult reports the repository state used for the push.

type Service

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

Service manages GitOps repository operations for the local-dev plugin.

func NewService

func NewService(executor localdev.Executor, stateDir string) (*Service, error)

NewService returns a GitOps helper service.

func (*Service) CurrentBranch

func (s *Service) CurrentBranch(ctx context.Context, gitDir string) (string, error)

CurrentBranch returns the currently checked-out branch or main when detached.

func (*Service) PullRebase

func (s *Service) PullRebase(ctx context.Context, clusterIdentifier, gitDir string) (string, error)

PullRebase synchronizes the local checkout after a Flux bootstrap commit.

Flux bootstrap writes manifests into the local working tree (e.g. the flux-system/ directory) without staging them. Git refuses to rebase with unstaged changes, so we commit any dirty state before pulling.

func (*Service) Push

func (s *Service) Push(ctx context.Context, clusterIdentifier string) (*PushResult, error)

Push pushes the cluster GitOps repo to the local Gitea remote.

Jump to

Keyboard shortcuts

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