Skip to content
This repository was archived by the owner on Aug 24, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions plugin/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ type Workspace struct {
Root string `json:"root"`
Path string `json:"path"`

Netrc *Netrc `json:"netrc"`
Keys *Keypair `json:"keys"`
Netrc []*NetrcEntry `json:"netrc"`
Keys *Keypair `json:"keys"`
}

// Keypair represents an RSA public and private key assigned to a
Expand All @@ -47,10 +47,10 @@ type Keypair struct {
Private string `json:"private"`
}

// Netrc defines a default .netrc file that should be injected
// into the build environment. It will be used to authorize access
// to https resources, such as git+https clones.
type Netrc struct {
// NetrcEntry defines a "machine" entry in a .netrc file that should
// be injected into the build environment. It will be used to
// authorize access to https resources, such as git+https clones.
type NetrcEntry struct {
Machine string `json:"machine"`
Login string `json:"login"`
Password string `json:"user"`
Expand Down