...

Package internal

import "edge-infra.dev/hack/tools/apko-updater-bot/internal"
Overview
Index

Overview ▾

type APKOFilePair

type APKOFilePair struct {
    APKODir               string
    APKOLocalTempDir      string
    APKOPath              string
    APKOFileMode          string
    APKOFileContent       []byte
    APKOFileLocalPath     string
    APKOLockPath          string
    APKOLockFileMode      string
    APKOLockFileContent   []byte
    APKOLockFileLocalPath string
}

func APKOPathToFilePair

func APKOPathToFilePair(fs *ghfs.FS, apkoDir string) (APKOFilePair, error)

type Config

type Config struct {
    Repository       string   `yaml:"repository"`
    Owner            string   `yaml:"owner"`
    BaseBranch       string   `yaml:"base_branch"`
    MergeBranch      string   `yaml:"merge_branch"`
    CommitBranch     string   `yaml:"commit_branch"`
    ApkoLocations    []string `yaml:"apko_locations"`
    DryRun           bool     `yaml:"dry_run"`
    GHPrivateKeyPath string   `yaml:"gh_app_private_key_path"`
    GHPrivateKey     string   `yaml:"gh_app_private_key"`
    GHAppID          int64    `yaml:"gh_app_id"`
    GHInstallationID int64    `yaml:"gh_installation_id"`
}

func NewConfigFromPath

func NewConfigFromPath(path string) (*Config, error)