builder

package
v0.0.0-...-eba7121 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: MIT Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(path string, imageName string) error

Types

type AuthResponse

type AuthResponse struct {
	Session Sesssion `json:"session"`
}

type Extractor

type Extractor struct {
	Repo   string // repo to fetch from
	Owner  string // repo owner
	Url    string // url to fc-session-cache instance to get tokens from
	Cookie string // session cookie value to fetch token from
}

func (*Extractor) Auth

func (e *Extractor) Auth() (success bool, gc github.Client, ct context.Context, token string, err error)

func (*Extractor) DownloadRepo

func (e *Extractor) DownloadRepo() (int64, string, error)

func (*Extractor) ExtractRepo

func (e *Extractor) ExtractRepo(ownerId int64, repoName string) (string, error)

type Processor

type Processor struct {
	Path string // the path to the extracted repo
}

func (*Processor) CopyDockerfile

func (p *Processor) CopyDockerfile() error

func (*Processor) DetectLanguage

func (p *Processor) DetectLanguage() (string, error)

func (*Processor) GetDockerfile

func (p *Processor) GetDockerfile() (string, error)

type Sesssion

type Sesssion struct {
	Token string `json:"access_token"`
}

Jump to

Keyboard shortcuts

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