openlane

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package openlane is a wrapper used to interact with the openlane API

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrAPITokenMissing is returned when the openlane API token is missing
	ErrAPITokenMissing = fmt.Errorf("token is required but not provided")
)

Functions

func NewDefaultClient

func NewDefaultClient() (*openlaneclient.OpenlaneClient, error)

NewDefaultClient creates a new openlane client using the default configuration variables

Types

type Config

type Config struct {
	// Token is the token to use for the openlane client
	Token string `json:"token" koanf:"token" default:""`
}

Config is the configuration for the openlane api

func NewDefaultConfig

func NewDefaultConfig() (*Config, error)

NewDefaultConfig returns a new Config with default values

func (*Config) NewClient

func (c *Config) NewClient() (*openlaneclient.OpenlaneClient, error)

NewClient creates a new openlane client using the provided configuration variables

Jump to

Keyboard shortcuts

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