docatl

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build added in v0.6.0

func Build(docsPath string, meta BuildMetadata) (string, error)

func WriteConfig added in v0.6.0

func WriteConfig(configPath string, config Config) error

Types

type BuildMetadata added in v0.6.0

type BuildMetadata struct {
	Host    string `yaml:"host,omitempty"`
	Project string `yaml:"project,omitempty"`
	Version string `yaml:"version,omitempty"`
}

func ExtractMetadata added in v0.6.0

func ExtractMetadata(docsPath string) (BuildMetadata, error)

type Config added in v0.6.0

type Config struct {
	Host   string `yaml:"host"`
	ApiKey string `yaml:"api-key"`
}

type Docat

type Docat struct {
	Host   string
	ApiKey string
}

func (*Docat) Claim

func (docat *Docat) Claim(project string) (ProjectClaim, error)

func (*Docat) Delete

func (docat *Docat) Delete(project string, version string) error

func (*Docat) HideOrShowVersion added in v1.0.0

func (docat *Docat) HideOrShowVersion(project string, version string, hide bool) error

func (*Docat) Post

func (docat *Docat) Post(project string, version string, docsPath string) error

func (*Docat) PushIcon added in v0.9.0

func (docat *Docat) PushIcon(project string, iconPath string) error

func (*Docat) Rename added in v1.0.0

func (docat *Docat) Rename(project string, newName string) error

func (*Docat) Tag

func (docat *Docat) Tag(project string, version string, tag string) error

type ProjectClaim

type ProjectClaim struct {
	Token string
}

Jump to

Keyboard shortcuts

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