Documentation
¶
Index ¶
- func BuildAncestorsDisplayName(ctx context.Context, ancestors []string, collectionID string, ...) []string
- func BuildAncestryPath(ancestors []string) string
- func CreateTopic(ctx context.Context, pubSubClient *pubsub.Client, topicList []string, ...) error
- func Find(slice []string, val string) bool
- func GetAssetContact(contactRole string, resourceJSON json.RawMessage) (string, error)
- func GetTopicList(ctx context.Context, pubSubClient *pubsub.Client) ([]string, error)
- func PrintEnptyInterfaceType(value interface{}, valueName string) error
- func RevertSlash(txt string) string
- type PublishRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAncestorsDisplayName ¶ added in v0.0.2
func BuildAncestorsDisplayName(ctx context.Context, ancestors []string, collectionID string, firestoreClient *firestore.Client, cloudresourcemanagerService *cloudresourcemanager.Service, cloudresourcemanagerServiceV2 *cloudresourcemanagerv2.Service) []string
BuildAncestorsDisplayName build a slice of Ancestor friendly name fron a slice of ancestors
func BuildAncestryPath ¶ added in v0.0.2
BuildAncestryPath build a path from a slice of ancestors
func CreateTopic ¶ added in v0.0.2
func CreateTopic(ctx context.Context, pubSubClient *pubsub.Client, topicList []string, topicName string) error
CreateTopic check if a topic already exist, if not create it
func GetAssetContact ¶ added in v0.0.2
func GetAssetContact(contactRole string, resourceJSON json.RawMessage) (string, error)
GetAssetContact retrieve owner of resolver contact from asset labels and parent labels
func GetTopicList ¶ added in v0.0.2
GetTopicList retreive the list of existing pubsub topics
func PrintEnptyInterfaceType ¶ added in v0.0.2
PrintEnptyInterfaceType discover the type below an empty interface
Types ¶
type PublishRequest ¶ added in v0.0.2
type PublishRequest struct {
Topic string `json:"topic"`
}
PublishRequest Pub/sub
Click to show internal directories.
Click to hide internal directories.