Documentation
¶
Index ¶
- func NewClient() (*githubClient, error)
- type Label
- type Labels
- func (l Labels) LabelsToCSV(labels []*Label) ([]byte, error)
- func (l Labels) LabelsToINI(labels []*Label) ([]byte, error)
- func (l Labels) LabelsToJSON(labels []*Label) ([]byte, error)
- func (l Labels) LabelsToTOML(labels []*Label) ([]byte, error)
- func (l Labels) LabelsToTable(labels []*Label) ([]byte, error)
- func (l Labels) LabelsToXML(labels []*Label) ([]byte, error)
- func (l Labels) LabelsToYAML(labels []*Label) ([]byte, error)
- type LabelsToObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 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)
}
Click to show internal directories.
Click to hide internal directories.