api

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package api provides utility functions for working with the Minder APIs. Currently, this provides "upsert" methods for a few API calls that support Create and Update methods -- Upsert attempts a create, and falls back to update if the create fails with AlreadyExists.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpsertDataSource

func UpsertDataSource(
	ctx context.Context, client minderv1.DataSourceServiceClient, dataSource *minderv1.DataSource,
) error

UpsertDataSource creates or updates a dataSource using the supplied client.

func UpsertProfile

func UpsertProfile(
	ctx context.Context, client minderv1.ProfileServiceClient, profile *minderv1.Profile,
) error

UpsertProfile creates or updates a profile using the supplied client.

func UpsertRuleType

func UpsertRuleType(
	ctx context.Context, client minderv1.RuleTypeServiceClient, ruleType *minderv1.RuleType,
) error

UpsertRuleType creates or updates a ruleType using the supplied client.

Types

This section is empty.

Directories

Path Synopsis
protobuf
go/minder/v1
Package v1 contains helper methods when working with the Minder v1 API.
Package v1 contains helper methods when working with the Minder v1 API.

Jump to

Keyboard shortcuts

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