Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
CollaborationsPath = "me/collaborations"
)
Functions ¶
func CommandStr ¶ added in v0.1.15824
func CommandStr() string
Returns a string (e.g. "circleci context list") indicating what subcommand is being called, without any args or flags, for API headers.
func Execute ¶
func Execute()
Execute adds all child commands to rootCmd and sets flags appropriately. This function is called by main.main(). It only needs to happen once to the rootCmd.
func GetOrgIdFromSlug ¶ added in v0.1.22100
func GetOrgIdFromSlug(slug string, collaborations []CollaborationResult) string
GetOrgIdFromSlug - converts a slug into an orgID.
Types ¶
type CollaborationResult ¶ added in v0.1.22100
type CollaborationResult struct {
VcsTye string `json:"vcs_type"`
OrgSlug string `json:"slug"`
OrgName string `json:"name"`
OrgId string `json:"id"`
AvatarUrl string `json:"avatar_url"`
}
func GetOrgCollaborations ¶ added in v0.1.22100
func GetOrgCollaborations(cfg *settings.Config) ([]CollaborationResult, error)
GetOrgCollaborations - fetches all the collaborations for a given user.
type ExampleSchema ¶ added in v0.1.8731
type ExampleSchema struct {
Description string `yaml:"description,omitempty"`
Usage ExampleUsageSchema `yaml:"usage,omitempty"`
Result ExampleUsageSchema `yaml:"result,omitempty"`
}
type ExampleUsageSchema ¶ added in v0.1.8731
type ExampleUsageSchema struct {
Version string `yaml:"version,omitempty"`
Orbs interface{} `yaml:"orbs,omitempty"`
Jobs interface{} `yaml:"jobs,omitempty"`
Workflows interface{} `yaml:"workflows"`
}
type OrbSchema ¶ added in v0.1.8731
type OrbSchema struct {
Version float32 `yaml:"version,omitempty"`
Description string `yaml:"description,omitempty"`
Display yaml.Node `yaml:"display,omitempty"`
Orbs yaml.Node `yaml:"orbs,omitempty"`
Commands yaml.Node `yaml:"commands,omitempty"`
Executors yaml.Node `yaml:"executors,omitempty"`
Jobs yaml.Node `yaml:"jobs,omitempty"`
Examples map[string]ExampleSchema `yaml:"examples,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.