Versions in this module Expand all Collapse all v1 v1.0.0 Apr 14, 2026 Changes in this version + var ErrAuthentication = errors.New("intelligencecloud: authentication failed") + var ErrAuthorization = errors.New("intelligencecloud: not authorized") + var ErrConflict = errors.New("intelligencecloud: resource conflict") + var ErrNotFound = errors.New("intelligencecloud: resource not found") + var ErrRateLimit = errors.New("intelligencecloud: rate-limited") + var ErrServer = errors.New("intelligencecloud: server error") + var ErrValidation = errors.New("intelligencecloud: validation failed") + var RedactedHeaders = []string + func HTTPRequestAttrs(method, urlTemplate, fullURL, userAgent string, bodySize int) []attribute.KeyValue + func HTTPResponseAttrs(statusCode, bodySize int, protoVersion string) []attribute.KeyValue + func RedactHeaders(h http.Header) map[string]string + func RedactURL(u *url.URL) string + func SDKAttrs(operationID, resource, requestID, sdkVersion string, retryAttempt int, ...) []attribute.KeyValue + func ServerAttrs(host string, port int) []attribute.KeyValue + func SpanName(operationID string) string + type APIError interface + Code func() string + Operation func() string + RequestID func() string + Status func() int + type AuditLogEntry = generated.AuditLogEntry + type AuditLogService struct + func (s *AuditLogService) ListForReseller(ctx context.Context, resellerID string, opts ...ListOption) *Iterator[AuditLogEntry] + type AuthService struct + func (s *AuthService) Login(ctx context.Context, req LoginRequest, opts ...CallOption) (*LoginResponse, error) + type AuthenticationError struct + func NewAuthenticationError(statusCode int, code, message, requestID, operationID string) *AuthenticationError + func (b AuthenticationError) Code() string + func (b AuthenticationError) Operation() string + func (b AuthenticationError) RequestID() string + func (b AuthenticationError) Status() int + func (e *AuthenticationError) Error() string + func (e *AuthenticationError) Unwrap() error + type AuthorizationError struct + RequiredScopes []string + func NewAuthorizationError(statusCode int, code, message, requestID, operationID string, ...) *AuthorizationError + func (b AuthorizationError) Code() string + func (b AuthorizationError) Operation() string + func (b AuthorizationError) RequestID() string + func (b AuthorizationError) Status() int + func (e *AuthorizationError) Error() string + func (e *AuthorizationError) Unwrap() error + type AvatarConfirmRequest = generated.AvatarConfirmRequest + type AvatarResponseData = generated.AvatarResponseData + type AvatarUploadURLRequest = generated.AvatarUploadURLRequest + type AvatarUploadURLResponseData = generated.AvatarUploadURLResponseData + type CallOption interface + func WithExtraHeader(name, value string) CallOption + func WithIdempotencyKey(key string) CallOption + func WithRequestTimeout(d time.Duration) CallOption + type Client struct + AuditLogs *AuditLogService + Auth *AuthService + Companies *CompanyService + Connectors *ConnectorService + Locations *LocationService + Me *MeService + Products *ProductService + Resellers *ResellerService + Users *UserService + Verticals *VerticalService + func NewClient(baseURL string, provider auth.CredentialProvider, opts ...ClientOption) (*Client, error) + type ClientOption interface + func WithDisableRetry() ClientOption + func WithHTTPClient(c *http.Client) ClientOption + func WithLogger(l *slog.Logger) ClientOption + func WithPropagator(p propagation.TextMapPropagator) ClientOption + func WithRetryPolicy(p RetryPolicy) ClientOption + func WithTracerProvider(tp trace.TracerProvider) ClientOption + func WithUserAgent(ua string) ClientOption + type CompanyConnector = generated.CompanyConnectorItem + type CompanyConnectorList struct + ErrorSummary []ConnectorErrorSummaryItem + Iterator *Iterator[CompanyConnector] + type CompanyService struct + type CompanyUser = generated.CompanyUserResponseData + type ConfigurationError struct + Message string + func (e *ConfigurationError) Error() string + type ConflictError struct + func NewConflictError(statusCode int, code, message, requestID, operationID string) *ConflictError + func (b ConflictError) Code() string + func (b ConflictError) Operation() string + func (b ConflictError) RequestID() string + func (b ConflictError) Status() int + func (e *ConflictError) Error() string + func (e *ConflictError) Unwrap() error + type ConnectorErrorSummaryItem = generated.ConnectorErrorSummaryItem + type ConnectorService struct + func (s *ConnectorService) ListByCompany(ctx context.Context, companyID string, opts ...ListOption) *CompanyConnectorList + func (s *ConnectorService) ListByLocation(ctx context.Context, locationID string, opts ...ListOption) *Iterator[LocationConnector] + type CreateResellerRequest = generated.CreateResellerRequest + type DailyRecapPreferences = generated.DailyRecapPreferences + type DailyRecapPreferencesPatch = generated.PatchDailyRecapPreferencesRequest + type DeactivateResellerRequest = generated.DeactivateResellerRequest + type FieldError struct + Code string + Field string + Message string + type Iterator struct + func (it *Iterator[T]) Close() + func (it *Iterator[T]) Err() error + func (it *Iterator[T]) Next(ctx context.Context) bool + func (it *Iterator[T]) PageInfo() PageInfo + func (it *Iterator[T]) Value() T + type JitterStrategy int + const EqualJitter + const FullJitter + const NoJitter + type ListOption interface + func WithFilter(key, value string) ListOption + func WithMaxItems(n int) ListOption + func WithPageSize(n int) ListOption + type LocationConnector = generated.LocationConnectorItem + type LocationService struct + type LoginRequest = generated.LoginRequest + type LoginResponse = generated.LoginResponse + type MeService struct + func (s *MeService) ConfirmAvatar(ctx context.Context, req AvatarConfirmRequest, opts ...CallOption) (*AvatarResponseData, error) + func (s *MeService) CreateAvatarUploadURL(ctx context.Context, req AvatarUploadURLRequest, opts ...CallOption) (*AvatarUploadURLResponseData, error) + func (s *MeService) DeleteAvatar(ctx context.Context, opts ...CallOption) error + func (s *MeService) Get(ctx context.Context, opts ...CallOption) (*UserProfile, error) + func (s *MeService) GetDailyRecapPreferences(ctx context.Context, opts ...CallOption) (*DailyRecapPreferences, error) + func (s *MeService) GetNotificationPreferences(ctx context.Context, opts ...CallOption) (*NotificationPreferences, error) + func (s *MeService) PatchDailyRecapPreferences(ctx context.Context, req DailyRecapPreferencesPatch, opts ...CallOption) (*DailyRecapPreferences, error) + func (s *MeService) PatchNotificationPreferences(ctx context.Context, req NotificationPreferencesPatch, opts ...CallOption) (*NotificationPreferences, error) + type NotFoundError struct + ResourceID string + ResourceType string + func NewNotFoundError(statusCode int, ...) *NotFoundError + func (b NotFoundError) Code() string + func (b NotFoundError) Operation() string + func (b NotFoundError) RequestID() string + func (b NotFoundError) Status() int + func (e *NotFoundError) Error() string + func (e *NotFoundError) Unwrap() error + type NotificationPreferences = generated.NotificationPreferences + type NotificationPreferencesPatch = generated.PatchNotificationPreferencesRequest + type PageInfo struct + HasNextPage bool + ItemsFetched int + NextPageToken string + PagesFetched int + type PatchResellerRequest = generated.PatchResellerRequest + type Product = generated.Product + type ProductService struct + func (s *ProductService) List(ctx context.Context, opts ...CallOption) ([]Product, error) + type RateLimitError struct + RetryAfter time.Duration + func NewRateLimitError(statusCode int, code, message, requestID, operationID string, ...) *RateLimitError + func (b RateLimitError) Code() string + func (b RateLimitError) Operation() string + func (b RateLimitError) RequestID() string + func (b RateLimitError) Status() int + func (e *RateLimitError) Error() string + func (e *RateLimitError) Unwrap() error + type RedactingHandler struct + func NewRedactingHandler(inner slog.Handler) *RedactingHandler + func (h *RedactingHandler) Enabled(ctx context.Context, level slog.Level) bool + func (h *RedactingHandler) Handle(ctx context.Context, r slog.Record) error + func (h *RedactingHandler) WithAttrs(attrs []slog.Attr) slog.Handler + func (h *RedactingHandler) WithGroup(name string) slog.Handler + type Reseller = generated.Reseller + type ResellerService struct + func (s *ResellerService) Create(ctx context.Context, req CreateResellerRequest, opts ...CallOption) (*Reseller, error) + func (s *ResellerService) Deactivate(ctx context.Context, id string, req DeactivateResellerRequest, ...) (*Reseller, error) + func (s *ResellerService) Get(ctx context.Context, id string, opts ...CallOption) (*Reseller, error) + func (s *ResellerService) List(ctx context.Context, opts ...ListOption) *Iterator[Reseller] + func (s *ResellerService) ListAuditLogs(ctx context.Context, resellerID string, opts ...ListOption) *Iterator[AuditLogEntry] + func (s *ResellerService) Patch(ctx context.Context, id string, req PatchResellerRequest, opts ...CallOption) (*Reseller, error) + func (s *ResellerService) Reactivate(ctx context.Context, id string, opts ...CallOption) (*Reseller, error) + func (s *ResellerService) Update(ctx context.Context, id string, req UpdateResellerRequest, opts ...CallOption) (*Reseller, error) + type RetryPolicy struct + BaseDelay time.Duration + Enabled bool + HonourRetryAfter bool + Jitter JitterStrategy + MaxAttempts int + MaxDelay time.Duration + RetryableStatus []int + func DefaultRetryPolicy() RetryPolicy + func NoRetry() RetryPolicy + func (p RetryPolicy) Validate() error + type ServerError struct + func NewServerError(statusCode int, code, message, requestID, operationID string) *ServerError + func (b ServerError) Code() string + func (b ServerError) Operation() string + func (b ServerError) RequestID() string + func (b ServerError) Status() int + func (e *ServerError) Error() string + func (e *ServerError) Unwrap() error + type UnexpectedError struct + CauseBody []byte + func NewUnexpectedError(statusCode int, code, message, requestID, operationID string, causeBody []byte) *UnexpectedError + func (b UnexpectedError) Code() string + func (b UnexpectedError) Operation() string + func (b UnexpectedError) RequestID() string + func (b UnexpectedError) Status() int + func (e *UnexpectedError) Error() string + type UpdateCompanyUserRequest = generated.UpdateCompanyUserRequest + type UpdateResellerRequest = generated.UpdateResellerRequest + type UserProfile = generated.UserProfile + type UserService struct + func (s *UserService) PatchCompany(ctx context.Context, companyID, userID string, req UpdateCompanyUserRequest, ...) (*CompanyUser, error) + type ValidationError struct + FieldErrors []FieldError + func NewValidationError(statusCode int, code, message, requestID, operationID string, ...) *ValidationError + func (b ValidationError) Code() string + func (b ValidationError) Operation() string + func (b ValidationError) RequestID() string + func (b ValidationError) Status() int + func (e *ValidationError) Error() string + func (e *ValidationError) Unwrap() error + type VerticalService struct