Documentation
¶
Overview ¶
Package contacts implements the gro contacts command and subcommands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientFactory = func(ctx context.Context) (ContactsClient, error) { return contacts.NewClient(ctx) }
ClientFactory is the function used to create Contacts clients. Override in tests to inject mocks.
Functions ¶
Types ¶
type ContactsClient ¶ added in v1.0.35
type ContactsClient interface {
ListContacts(ctx context.Context, pageToken string, pageSize int64) (*people.ListConnectionsResponse, error)
SearchContacts(ctx context.Context, query string, pageSize int64) (*people.SearchResponse, error)
GetContact(ctx context.Context, resourceName string) (*people.Person, error)
ListContactGroups(ctx context.Context, pageToken string, pageSize int64) (*people.ListContactGroupsResponse, error)
AddToGroup(ctx context.Context, groupResourceName string, contactResourceNames []string) error
RemoveFromGroup(ctx context.Context, groupResourceName string, contactResourceNames []string) error
ResolveGroupName(ctx context.Context, name string) (string, error)
SearchContactIDs(ctx context.Context, query string, pageSize int64) ([]string, error)
}
ContactsClient defines the interface for Contacts client operations used by contacts commands.
Click to show internal directories.
Click to hide internal directories.