workflowproc

package
v0.0.0-...-4450389 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigArchiveRepoGCDelay = ConfigArchiveRepoGCDelayDays * 24 * time.Hour
View Source
const ConfigArchiveRepoGCDelayDays = 7
View Source
const ConfigErrorMessageTruncateLength = 120

`ConfigErrorMessageTruncateLength` limits the length of error messages when storing them on a repo. Longer messages are truncated. The limit must be smaller than the maximum length that nogfsoregd accepts.

View Source
const ConfigMaxArchiveRepoRetries = 5
View Source
const ConfigMaxFreezeRepoRetries = 5
View Source
const ConfigMaxStreams = 20
View Source
const ConfigMaxUnarchiveRepoRetries = 5
View Source
const ConfigMaxUnfreezeRepoRetries = 5
View Source
const ConfigUnarchiveRepoGCDelay = ConfigUnarchiveRepoGCDelayDays * 24 * time.Hour
View Source
const ConfigUnarchiveRepoGCDelayDays = 7

Variables

View Source
var ErrAclsDisabled = errors.New("ACLs disabled")
View Source
var ErrUnknownEvent = errors.New("unknown event")

Functions

func Scan0s

func Scan0s(data []byte, atEOF bool) (advance int, token []byte, err error)

Types

type AclPropagator

type AclPropagator interface {
	PropagateAcls(ctx context.Context, src, dst string) error
}

type ArchiveRepoPrivileges

type ArchiveRepoPrivileges interface {
	privileges.UdoChattrPrivileges
}

type Config

type Config struct {
	Registries         []string
	Prefixes           []string
	Conn               *grpc.ClientConn
	SysRPCCreds        credentials.PerRPCCredentials
	RepoProcessor      RepoProcessor
	Privileges         Privileges
	AclPropagator      AclPropagator
	ArchiveRepoSpool   string
	UnarchiveRepoSpool string
}

type Logger

type Logger interface {
	Infow(msg string, kv ...interface{})
	Warnw(msg string, kv ...interface{})
	Errorw(msg string, kv ...interface{})
}

type Privileges

type Privileges interface {
	privileges.UdoChattrPrivileges
}

type Processor

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

func New

func New(lg Logger, cfg *Config) *Processor

func (*Processor) Run

func (p *Processor) Run(ctx context.Context) error

type RepoProcessor

type RepoProcessor interface {
	WaitEnableRepo4(ctx context.Context, id uuid.I) error
	FreezeRepo(
		ctx context.Context, repoId uuid.I, author nogfsostad.GitUser,
	) error
	UnfreezeRepo(
		ctx context.Context, repoId uuid.I, author nogfsostad.GitUser,
	) error
	TarttIsFrozenArchive(
		ctx context.Context, repoId uuid.I,
	) (*shadows.TarttIsFrozenArchiveInfo, error)
	ArchiveRepo(
		ctx context.Context,
		repoId uuid.I,
		workfingDir string,
		author nogfsostad.GitUser,
	) error
	UnarchiveRepo(
		ctx context.Context,
		repoId uuid.I,
		workfingDir string,
		author nogfsostad.GitUser,
	) error
}

type UnarchiveRepoPrivileges

type UnarchiveRepoPrivileges interface {
	privileges.UdoChattrPrivileges
}

Jump to

Keyboard shortcuts

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