exporter

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: MIT Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient() (*githubClient, error)

NewClient creates a new github client.

Types

type Label

type Label struct {
	// The name of the label.
	Name string `json:"name"`
	// An optional description of the label.
	Description string `json:"description"`
	// The hexadecimal color code for the label.
	Color string `json:"color"`

	// True if the label is the default label for the repository, false otherwise.
	Default bool `json:"default"`
	// The unique ID of the label assigned by GitHub.
	ID int64 `json:"id"`
	// The unique node ID of the label assigned by GitHub.
	NodeID string `json:"node_id"`
	// The URL to query information about the label.
	URL string `json:"url"`
}

type Labels

type Labels struct {
	Name        string `json:"name" yaml:"name" toml:"name" ini:"name" xml:"name"`
	Description string `` /* 142-byte string literal not displayed */
	Color       string `json:"color,omitempty" yaml:"color,omitempty" toml:"color,omitempty" ini:"color,omitempty" xml:"color,omitempty"`
}

func (Labels) LabelsToCSV

func (l Labels) LabelsToCSV(labels []*Label) ([]byte, error)

func (Labels) LabelsToINI

func (l Labels) LabelsToINI(labels []*Label) ([]byte, error)

func (Labels) LabelsToJSON

func (l Labels) LabelsToJSON(labels []*Label) ([]byte, error)

func (Labels) LabelsToTOML

func (l Labels) LabelsToTOML(labels []*Label) ([]byte, error)

func (Labels) LabelsToTable

func (l Labels) LabelsToTable(labels []*Label) ([]byte, error)

func (Labels) LabelsToXML

func (l Labels) LabelsToXML(labels []*Label) ([]byte, error)

func (Labels) LabelsToYAML

func (l Labels) LabelsToYAML(labels []*Label) ([]byte, error)

type LabelsToObject

type LabelsToObject interface {
	// Convert labels to JSON format
	LabelsToJSON(labels []*Label) ([]byte, error)
	// Convert labels to YAML format
	LabelsToYAML(labels []*Label) ([]byte, error)
	// Convert labels to table format
	LabelsToTable(labels []*Label) ([]byte, error)

	// Convert labels to XML format
	LabelsToXML(labels []*Label) ([]byte, error)
	// Convert labels to TOML format
	LabelsToTOML(labels []*Label) ([]byte, error)
	// Convert labels to INI format
	LabelsToINI(labels []*Label) ([]byte, error)
	// Convert labels to CSV format
	LabelsToCSV(labels []*Label) ([]byte, error)
}

Jump to

Keyboard shortcuts

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