Documentation
¶
Overview ¶
Package org provides shared logic for CircleCI organization operations.
Index ¶
- func List(ctx context.Context, client *apiclient.Client) ([]apiclient.Collaboration, error)
- func ParseSlug(slug string) (vcs, orgName string, err error)
- func Require(ctx context.Context, client *apiclient.Client) ([]apiclient.Collaboration, error)
- func Select(ctx context.Context, client *apiclient.Client) (string, error)
- func ValidateSlug(collabs []apiclient.Collaboration, slug string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Require ¶
Require fetches the user's organizations and returns an actionable error when the account has none. In interactive mode, offers to create a new CircleCI organization on the spot.
func Select ¶
Select fetches the user's organizations and presents an interactive picker. With exactly one org it is auto-selected; with multiple the user picks.
func ValidateSlug ¶
func ValidateSlug(collabs []apiclient.Collaboration, slug string) error
ValidateSlug checks that the given org slug is among the user's organizations.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.