-
Notifications
You must be signed in to change notification settings - Fork 11
/
api.go
40 lines (32 loc) · 1.08 KB
/
api.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Code generated by "gen"; DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package jwttemplate
import (
"context"
"github.com/clerk/clerk-sdk-go/v2"
)
// Create creates a new JWT template.
func Create(ctx context.Context, params *CreateParams) (*clerk.JWTTemplate, error) {
return getClient().Create(ctx, params)
}
// Get returns details about a JWT template.
func Get(ctx context.Context, id string) (*clerk.JWTTemplate, error) {
return getClient().Get(ctx, id)
}
// Update updates the JWT template specified by id.
func Update(ctx context.Context, id string, params *UpdateParams) (*clerk.JWTTemplate, error) {
return getClient().Update(ctx, id, params)
}
// Delete deletes a JWT template.
func Delete(ctx context.Context, id string) (*clerk.DeletedResource, error) {
return getClient().Delete(ctx, id)
}
// List returns a list of JWT templates.
func List(ctx context.Context, params *ListParams) (*clerk.JWTTemplateList, error) {
return getClient().List(ctx, params)
}
func getClient() *Client {
return &Client{
Backend: clerk.GetBackend(),
}
}