Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { EsaAPIKey string `envs:"PIGEON_ESA_KEY"` EsaTeam string `envs:"PIGEON_ESA_TEAM"` GitBinPath string `envs:"PIGEON_GIT_BIN"` DiaryRepoURL string `envs:"PIGEON_DIARY_REPO_URL"` ArticleDir string `envs:"PIGEON_PROJECT_ARTICLE_DIR"` ImageStoreDir string `envs:"PIGEON_PROJECT_IMAGE_DIR"` ImageViewDir string `envs:"PIGEON_PROJECT_IMAGE_VIEW_DIR"` // for GCS ProjectID string `envs:"PIGEON_PROJECT_ID"` BucketID string `envs:"PIGEON_BUCKET_ID"` }
type GitRepoDir ¶
type GitRepoDir struct { ProjectRootDir string // contains filtered or unexported fields }
func NewGitRepoDir ¶
func NewGitRepoDir(projectRootDir, articleDir, imageDir, imageViewDir string) (dir *GitRepoDir, err error)
func (*GitRepoDir) ArticleDir ¶
func (m *GitRepoDir) ArticleDir() (dir string)
func (*GitRepoDir) ImageDir ¶
func (m *GitRepoDir) ImageDir() (dir string)
func (*GitRepoDir) RelativeArticleDir ¶
func (m *GitRepoDir) RelativeArticleDir() (dir string)
func (*GitRepoDir) RelativeImageStoreDir ¶
func (m *GitRepoDir) RelativeImageStoreDir() (dir string)
func (*GitRepoDir) RelativeImageViewDir ¶
func (m *GitRepoDir) RelativeImageViewDir() (dir string)
Click to show internal directories.
Click to hide internal directories.