pkg

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	BasicAuth *BasicAuth
	SSH       *SSH
}

Auth defines authentication options for repositories.

type BasicAuth

type BasicAuth struct {
	Username string
	Password string
}

BasicAuth provides information for basic authentication. The expected format is Username as username and Password is usually a token.

type Git

type Git interface {
	Push(ctx context.Context, opts *PushOptions) (string, error)
}

Git defines an interface to abstract git operations.

type PushOptions

type PushOptions struct {
	Auth         *Auth
	URL          string
	Message      string
	Name         string
	Email        string
	Snapshot     *ocmv1.Snapshot
	BaseBranch   string
	TargetBranch string
	SubPath      string
	Prune        bool
}

PushOptions contains settings for a push action.

type SSH

type SSH struct {
	PemBytes []byte
	User     string
	Password string
}

SSH provides authentication for private repositories using an SSH key. The key has to be the Private key.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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