infra

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EsaInfra

type EsaInfra interface {
	GetArticle(id int) (article *model.Article, err error)
}

func NewEsaInfra

func NewEsaInfra(client *esa.EsaClient) (infra EsaInfra)

type EsaInfraImpl

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

func (*EsaInfraImpl) GetArticle

func (i *EsaInfraImpl) GetArticle(id int) (article *model.Article, err error)

type GitInfra

type GitInfra interface {
	Clone(baseDir, repoUrl string) (projectRootDir string, err error)
	CommitUnStaged(projectRootDir, message string) (err error)
	Push(projectRootDir string) (err error)
}

func NewGitInfra

func NewGitInfra(config *model.Config) (infra GitInfra)

type GitInfraImpl

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

func (*GitInfraImpl) Clone

func (i *GitInfraImpl) Clone(baseDir, repoUrl string) (projectRootDir string, err error)

func (*GitInfraImpl) CommitUnStaged

func (i *GitInfraImpl) CommitUnStaged(projectRootDir, message string) (err error)

func (*GitInfraImpl) Push

func (i *GitInfraImpl) Push(projectRootDir string) (err error)

type ImageInfra

type ImageInfra interface {
	Fetch(dstPath, srcUrl string) (err error)
}

func NewImageInfra

func NewImageInfra(bucketName string, gcsClient *storage.Client) (infra ImageInfra)

type ImageInfraImpl

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

func (*ImageInfraImpl) Fetch

func (i *ImageInfraImpl) Fetch(dstDir, srcUrl string) (err error)

Jump to

Keyboard shortcuts

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