Documentation
¶
Overview ¶
Package team implements the `team` commands.
Index ¶
- Variables
- func AddEnvironments(ctx context.Context, c *platform.Client, o EnvironmentOptions) error
- func AddMembers(ctx context.Context, c *platform.Client, o MemberOptions) error
- func Apply(ctx context.Context, c *platform.Client, o ApplyOptions) error
- func Delete(ctx context.Context, c *platform.Client, o DeleteOptions) error
- func Get(ctx context.Context, c *platform.Client, o GetOptions) error
- func List(ctx context.Context, c *platform.Client, o ListOptions) error
- func ListEnvironments(ctx context.Context, c *platform.Client, key, explicitType string) error
- func ListMembers(ctx context.Context, c *platform.Client, key, explicitType string) error
- func RemoveEnvironments(ctx context.Context, c *platform.Client, o EnvironmentOptions) error
- func RemoveMembers(ctx context.Context, c *platform.Client, o MemberOptions) error
- func SetEnvironments(ctx context.Context, c *platform.Client, o EnvironmentOptions) error
- func SetMembers(ctx context.Context, c *platform.Client, o MemberOptions) error
- type ApplyOptions
- type DeleteOptions
- type EnvironmentOptions
- type GetOptions
- type ListOptions
- type MemberOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ReadOnly = []string{"version"} MemberReadOnly = []string{"name", "pictureUrl", "managedBy"} )
The version is dropped as `service get` drops it. Members are sent back as the platform takes them, by username, email and role; the rest describes the user.
Functions ¶
func AddEnvironments ¶
func AddMembers ¶
func Apply ¶
Apply upserts teams by their key, which is what names a team; there is no id to write back. The id `get` writes is not sent: the platform goes by the key alone, and another platform's id in the file would only contradict it.
func ListEnvironments ¶
func ListMembers ¶
func RemoveEnvironments ¶
func RemoveMembers ¶
func SetEnvironments ¶
SetEnvironments replaces the environments a team may use.
func SetMembers ¶
SetMembers replaces the members: everyone not given is removed from the team.
Types ¶
type ApplyOptions ¶
type DeleteOptions ¶
type EnvironmentOptions ¶
type GetOptions ¶
type GetOptions struct {
Key, File, Type string
}
type ListOptions ¶
Click to show internal directories.
Click to hide internal directories.