infrastructures

package
v0.0.0-...-ce61c30 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 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 CircleCIAPIClient

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

CircleCIAPIClient ...

func NewCircleCIAPIClient

func NewCircleCIAPIClient() *CircleCIAPIClient

NewCircleCIAPIClient ...

func (*CircleCIAPIClient) CreateEnv

func (c *CircleCIAPIClient) CreateEnv(vcs domain.VCS, user, repo, tkn string, e *domain.Env) error

CreateEnv ...

func (*CircleCIAPIClient) DeleteEnv

func (c *CircleCIAPIClient) DeleteEnv(vcs domain.VCS, user, repo, tkn, name string) error

DeleteEnv ...

func (*CircleCIAPIClient) GetEnvs

func (c *CircleCIAPIClient) GetEnvs(vcs domain.VCS, user, repo, tkn string) (*domain.Envs, error)

GetEnvs ...

type DotenvParser

type DotenvParser struct{}

DotenvParser ...

func NewDotenvParser

func NewDotenvParser() *DotenvParser

NewDotenvParser ...

func (*DotenvParser) Parse

func (l *DotenvParser) Parse(r io.Reader) (map[string]string, error)

Parse ...

type FileSystem

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

FileSystem ...

func NewFileSystem

func NewFileSystem() *FileSystem

NewFileSystem ...

func (*FileSystem) CreateDir

func (fs *FileSystem) CreateDir(p string) error

CreateDir ...

func (*FileSystem) CreateFile

func (fs *FileSystem) CreateFile(p string) (io.WriteCloser, error)

CreateFile ...

func (*FileSystem) OpenFile

func (fs *FileSystem) OpenFile(p string) (io.ReadCloser, error)

OpenFile ...

func (*FileSystem) ReadFile

func (fs *FileSystem) ReadFile(p string) ([]byte, error)

ReadFile ...

type HTTPAPI

type HTTPAPI interface {
	Do(req *http.Request) (*http.Response, error)
}

HTTPAPI ...

type HTTPClient

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

HTTPClient ...

func NewHTTPClient

func NewHTTPClient() *HTTPClient

NewHTTPClient ...

func (*HTTPClient) Do

func (c *HTTPClient) Do(req *http.Request) (*HTTPResponse, error)

Do ...

type HTTPResponse

type HTTPResponse struct {
	StatusCode int
	Body       io.Reader
}

HTTPResponse ...

type IHTTPClient

type IHTTPClient interface {
	Do(req *http.Request) (*HTTPResponse, error)
}

IHTTPClient ...

type JSONDecoder

type JSONDecoder struct{}

JSONDecoder ...

func NewJSONDecoder

func NewJSONDecoder() *JSONDecoder

NewJSONDecoder ...

func (*JSONDecoder) Decode

func (d *JSONDecoder) Decode(r io.Reader, obj interface{}) error

Decode ...

type JSONMarshaler

type JSONMarshaler struct{}

JSONMarshaler ...

func NewJSONMarshaler

func NewJSONMarshaler() *JSONMarshaler

NewJSONMarshaler ...

func (*JSONMarshaler) Marshal

func (m *JSONMarshaler) Marshal(obj interface{}) ([]byte, error)

Marshal ...

func (*JSONMarshaler) MarshalPretty

func (m *JSONMarshaler) MarshalPretty(obj interface{}) ([]byte, error)

MarshalPretty ...

Jump to

Keyboard shortcuts

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