iid

package
v1.0.1-0...-339830d Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package iid contains functions for deleting instance IDs from Firebase projects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAlreadyDeleted deprecated

func IsAlreadyDeleted(err error) bool

IsAlreadyDeleted checks if the given error was due to the instance ID being already deleted from the project.

Deprecated: Use errorutils.IsConflict() function instead.

func IsInsufficientPermission deprecated

func IsInsufficientPermission(err error) bool

IsInsufficientPermission checks if the given error was due to the request not having the required authorization. This could be due to the client not having the required permission or the specified instance ID not matching the target Firebase project.

Deprecated: Use errorutils.IsUnauthenticated() or errorutils.IsPermissionDenied() instead.

func IsInternal deprecated

func IsInternal(err error) bool

IsInternal checks if the given error was due to an internal server error.

Deprecated: Use errorutils.IsInternal() function instead.

func IsInvalidArgument deprecated

func IsInvalidArgument(err error) bool

IsInvalidArgument checks if the given error was due to an invalid instance ID argument.

Deprecated: Use errorutils.IsInvalidArgument() function instead.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound checks if the given error was due to a non existing instance ID.

func IsServerUnavailable deprecated

func IsServerUnavailable(err error) bool

IsServerUnavailable checks if the given error was due to the backend server being temporarily unavailable.

Deprecated: Use errorutils.IsUnavailable() function instead.

func IsTooManyRequests deprecated

func IsTooManyRequests(err error) bool

IsTooManyRequests checks if the given error was due to the client sending too many requests causing a server quota to exceed.

Deprecated: Use errorutils.IsResourceExhausted() function instead.

func IsUnknown deprecated

func IsUnknown(err error) bool

IsUnknown checks if the given error was due to unknown error returned by the backend server.

Deprecated: Use errorutils.IsUnknown() function instead.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is the interface for the Firebase Instance ID service.

func NewClient

func NewClient(ctx context.Context, c *internal.InstanceIDConfig) (*Client, error)

NewClient creates a new instance of the Firebase instance ID Client.

This function can only be invoked from within the SDK. Client applications should access the the instance ID service through firebase.App.

func (*Client) DeleteInstanceID

func (c *Client) DeleteInstanceID(ctx context.Context, iid string) error

DeleteInstanceID deletes the specified instance ID and the associated data from Firebase..

Note that Google Analytics for Firebase uses its own form of Instance ID to keep track of analytics data. Therefore deleting a regular instance ID does not delete Analytics data. See https://firebase.google.com/support/privacy/manage-iids#delete_an_instance_id for more information.

Jump to

Keyboard shortcuts

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