Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultServer = "https://go.jolheiser.com" TokenHeader = "X-Vanity-Token" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(token string, opts ...ClientOption) *Client
func (*Client) Add ¶
Add adds a new Package to a vanity server
func (*Client) Info ¶
Info gets Info from a vanity server
func (*Client) Remove ¶
Remove removes a Package from a vanity server
type ClientOption ¶
type ClientOption func(*Client)
func WithHTTP ¶
func WithHTTP(client *http.Client) ClientOption
func WithServer ¶
func WithServer(server string) ClientOption
type Info ¶
type Package ¶
type SourceDirFile ¶
func AnalyzeSDF ¶
func AnalyzeSDF(pkg Package) (SourceDirFile, error)
func GitHubSDF ¶
func GitHubSDF(pkg Package) SourceDirFile
func GitLabSDF ¶
func GitLabSDF(pkg Package) SourceDirFile
func GiteaSDF ¶
func GiteaSDF(pkg Package) SourceDirFile