Documentation
¶
Index ¶
- type CheckoutHandler
- type Config
- type GitCheckout
- func (g *GitCheckout) AbsPath() string
- func (g *GitCheckout) FileContent(ctx context.Context, fileName string) (io.WriterTo, error)
- func (g *GitCheckout) LsFiles(ctx context.Context) ([]string, error)
- func (g *GitCheckout) Refresh(ctx context.Context) error
- func (g *GitCheckout) RemoteExists(remote string) bool
- func (g *GitCheckout) WithReference(ctx context.Context, refName string) (*GitCheckout, error)
- type GitOperator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckoutHandler ¶
type CheckoutHandler struct { Checkouts map[string]*GitCheckout Log *log.Logger }
func NewHandler ¶ added in v0.0.8
func NewHandler(logger *log.Logger, cfg Config) (*CheckoutHandler, error)
func (*CheckoutHandler) CheckoutsByRepo ¶ added in v0.0.8
func (h *CheckoutHandler) CheckoutsByRepo() map[string]*GitCheckout
func (*CheckoutHandler) SetupMux ¶
func (h *CheckoutHandler) SetupMux(mux *mux.Router)
type GitCheckout ¶
type GitCheckout struct {
// contains filtered or unexported fields
}
func (*GitCheckout) AbsPath ¶
func (g *GitCheckout) AbsPath() string
func (*GitCheckout) FileContent ¶
Will eventually want to cache this
func (*GitCheckout) RemoteExists ¶
func (g *GitCheckout) RemoteExists(remote string) bool
func (*GitCheckout) WithReference ¶
func (g *GitCheckout) WithReference(ctx context.Context, refName string) (*GitCheckout, error)
type GitOperator ¶
func (*GitOperator) Clone ¶
func (g *GitOperator) Clone(ctx context.Context, into string, remoteURL string, auth transport.AuthMethod) (*GitCheckout, error)
Click to show internal directories.
Click to hide internal directories.