Documentation
¶
Index ¶
Constants ¶
View Source
const ( Auth = "auth" Patrick = "patrick" Monkey = "monkey" TNS = "tns" Hoarder = "hoarder" Substrate = "substrate" Seer = "seer" Gateway = "gateway" )
Variables ¶
View Source
var ( Services = []string{Auth, Patrick, Monkey, TNS, Hoarder, Substrate, Seer, Gateway} HTTPServices = []string{Patrick, Substrate, Seer, Auth, Gateway} P2PStreamServices = []string{Seer, Auth, Patrick, TNS, Monkey, Hoarder, Substrate} )
View Source
var DefaultBranches = []string{"main", "master"}
TODO remove this and iterate, default branch should be gathered from a given repository
Functions ¶
func ValidateServices ¶
func ValidateServices(services []string, ops ...ValidateOption) error
Types ¶
type PathVariable ¶
type PathVariable string
const ( ProjectPathVariable PathVariable = "projects" ApplicationPathVariable PathVariable = "applications" ProjectIndexVariable PathVariable = "project" LinksPathVariable PathVariable = "links" BranchPathVariable PathVariable = "branches" CommitPathVariable PathVariable = "commit" CurrentCommitPathVariable PathVariable = "current" )
func (PathVariable) String ¶
func (pv PathVariable) String() string
type TnsPath ¶
type TnsPath struct {
// contains filtered or unexported fields
}
func NewTnsPath ¶
func (*TnsPath) Versioning ¶
func (_path *TnsPath) Versioning() *VersioningPath
type ValidateOption ¶
func ValidateHttp ¶
func ValidateHttp() ValidateOption
func ValidateP2P ¶
func ValidateP2P() ValidateOption
type VersioningPath ¶
type VersioningPath struct {
*TnsPath
}
func (*VersioningPath) Commit ¶
func (b *VersioningPath) Commit(commit string) *TnsPath
func (*VersioningPath) Links ¶
func (b *VersioningPath) Links() *TnsPath
Click to show internal directories.
Click to hide internal directories.