repo

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batch

type Batch struct {
	Basepath string
	Items    []BatchItem
}

type BatchItem

type BatchItem struct {
	Path     string
	Filename string
	Content  interface{}
}

type Codebase

type Codebase struct {
	Version     int64    `json:"version,string,omitempty"`
	Path        string   `json:"path,omitempty"`
	Main        string   `json:"main,omitempty"`
	Base        string   `json:"base,omitempty"`
	Files       []string `json:"files,omitempty"`
	EditFiles   []string `json:"editFiles,omitempty"`
	ErasedFiles []string `json:"erasedFiles,omitempty"`
	Derived     []string `json:"derived,omitempty"`
}

type PipyRepoClient

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

func NewRepoClient

func NewRepoClient(repoRootUrl string) *PipyRepoClient

func NewRepoClientWithTransport

func NewRepoClientWithTransport(repoRootUrl string, transport *http.Transport) *PipyRepoClient

func (*PipyRepoClient) Batch

func (p *PipyRepoClient) Batch(batches []Batch) error

func (*PipyRepoClient) CodebaseExists added in v0.2.6

func (p *PipyRepoClient) CodebaseExists(path string) bool

func (*PipyRepoClient) DeriveCodebase

func (p *PipyRepoClient) DeriveCodebase(path, base string) (bool, error)

func (*PipyRepoClient) GetFile

func (p *PipyRepoClient) GetFile(path string) (string, error)

func (*PipyRepoClient) IsRepoUp

func (p *PipyRepoClient) IsRepoUp() bool

type Router

type Router struct {
	Routes RouterEntry `json:"routes"`
}

type RouterEntry

type RouterEntry map[string]ServiceInfo

type ServiceInfo

type ServiceInfo struct {
	Service string   `json:"service,omitempty"`
	Rewrite []string `json:"rewrite,omitempty"`
}

type ServiceRegistry

type ServiceRegistry struct {
	Services ServiceRegistryEntry `json:"services"`
}

type ServiceRegistryEntry

type ServiceRegistryEntry map[string][]string

Jump to

Keyboard shortcuts

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