contacts

package
v1.0.46 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2026 License: MIT Imports: 7 Imported by: 0

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

func NewCommand

func NewCommand() *cobra.Command

NewCommand creates the contacts parent command

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL