cmdeventsrepo

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: 12 Imported by: 0

Documentation

Index

Constants

View Source
const AAFsoReadRepo = fsoauthz.AAFsoReadRepo

Variables

This section is empty.

Functions

func Cmd

func Cmd(lg Logger, args map[string]interface{})

Types

type ArchiveRepoInfo

type ArchiveRepoInfo struct {
	ArchiveURL string `json:"archiveUrl"`
}

type Event

type Event struct {
	Event  string `json:"event"`
	Id     string `json:"id"`
	Parent string `json:"parent"`
	Etime  string `json:"etime"`

	Note                  string `json:"note,omitempty"`
	*RepoInitInfo         `json:"repoInitInfo,omitempty"`
	*ShadowRepoInfo       `json:"shadowRepoInfo,omitempty"`
	*ArchiveRepoInfo      `json:"archiveRepoInfo,omitempty"`
	*ShadowBackupRepoInfo `json:"shadowBackupRepoInfo,omitempty"`
	*GitRepoInfo          `json:"gitRepoInfo,omitempty"`
	GitAuthor             *GitUser `json:"gitAuthor,omitempty"`
	RegistryEventId       string   `json:"registryEventId,omitempty"`
	WorkflowId            string   `json:"workflowId,omitempty"`
	WorkflowEventId       string   `json:"workflowEventId,omitempty"`
	GlobalPath            string   `json:"globalPath,omitempty"`
	FileHost              string   `json:"fileHost,omitempty"`
	HostPath              string   `json:"hostPath,omitempty"`
	ShadowPath            string   `json:"shadowPath,omitempty"`
	OldGlobalPath         string   `json:"oldGlobalPath,omitempty"`
	OldFileHost           string   `json:"oldFileHost,omitempty"`
	OldHostPath           string   `json:"oldHostPath,omitempty"`
	OldShadowPath         string   `json:"oldShadowPath,omitempty"`
	NewGlobalPath         string   `json:"newGlobalPath,omitempty"`
	NewFileHost           string   `json:"newFileHost,omitempty"`
	NewHostPath           string   `json:"newHostPath,omitempty"`
	GpgKeyFingerprints    []string `json:"gpgKeyFingerprints,omitempty"`
	ErrorMessage          string   `json:"errorMessage,omitempty"`
	StatusCode            int32    `json:"statusCode,omitempty"`
	StatusMessage         string   `json:"statusMessage,omitempty"`
}

type GitRepoInfo

type GitRepoInfo struct {
	GitlabProjectId int64 `json:"gitlabProjectId"`
}

type GitUser

type GitUser struct {
	Name  string `json:"name"`
	Email string `json:"email"`
}

type Logger

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

type RepoInitInfo

type RepoInitInfo struct {
	Registry       string `json:"registry"`
	GlobalPath     string `json:"globalPath,omitempty"`
	CreatorName    string `json:"creatorName,omitempty"`
	CreatorEmail   string `json:"creatorEmail,omitempty"`
	FileHost       string `json:"fileHost,omitempty"`
	HostPath       string `json:"hostPath,omitempty"`
	GitlabHost     string `json:"GitlabHost,omitempty"`
	GitlabPath     string `json:"GitlabPath,omitempty"`
	GitToNogAddr   string `json:"GitToNogAddr,omitempty"`
	SubdirTracking string `json:"subdirTracking,omitempty"`
}

func RepoInitInfoFromPb

func RepoInitInfoFromPb(inf pb.FsoRepoInitInfo) RepoInitInfo

type ShadowBackupRepoInfo

type ShadowBackupRepoInfo struct {
	ShadowBackupURL string `json:"shadowBackupUrl"`
}

type ShadowRepoInfo

type ShadowRepoInfo struct {
	ShadowPath    string `json:"shadowPath,omitempty"`
	NewShadowPath string `json:"newShadowPath,omitempty"`
}

Jump to

Keyboard shortcuts

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