Skip to main content

Go SDK - API Methods

Once you have created a Client, call the following methods on any of its services to perform operations against the OpenMetadata API. Examples of services are client.Tables, client.Databases, and client.Users. The examples below use client.Tables. They assume ctx is a context.Background() and that you created client as shown in Go SDK.

List Method

Method signature
Example
List fetches the next page of results for you as you loop, so you don’t need to handle paging yourself.

GetByID and GetByName Methods

Method signature
Example

Create Method

Method signature
Example

CreateOrUpdate Method

Method signature
Example

Patch Method

Method signature
Example

Delete and DeleteByName Methods

Method signature
Example