atomsdk

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AtomURL string
	Token   string
}

type Entity

type Entity struct {
	ID string
}

type Resource

type Resource struct {
	ID string
}

type SDK

type SDK interface {
	Login(ctx context.Context, identifier, secret string) (string, error)
	CreateTenant(ctx context.Context, name, token string) (string, error)
	EnsureTenant(ctx context.Context, name, token string) (string, error)
	CreateServiceEntity(ctx context.Context, name, tenantID, token string) (string, error)
	CreateSharedKey(ctx context.Context, entityID, description, token string) (string, error)
	CreateResource(ctx context.Context, name, tenantID, token string) (string, error)
	Connect(ctx context.Context, entityID, resourceID, tenantID, token string) error
	DeleteEntity(ctx context.Context, id, token string) error
	DeleteResource(ctx context.Context, id, token string) error
}

func New

func New(cfg Config) SDK

Jump to

Keyboard shortcuts

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