custom

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Services = []string{"custom"}

Functions

This section is empty.

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider is a data provider for custom URLs

func New

func New(block schema.OptionBlock) (*Provider, error)

New creates a new provider client for custom URLs

func (*Provider) ID

func (p *Provider) ID() string

ID returns the name of the provider id

func (*Provider) Name

func (p *Provider) Name() string

Name returns the name of the provider

func (*Provider) Resources

func (p *Provider) Resources(ctx context.Context) (*schema.Resources, error)

Resources returns the provider for an resource deployment source.

func (*Provider) Services

func (p *Provider) Services() []string

Services returns the provider services

type ProviderOptions

type ProviderOptions struct {
	Id       string
	URLs     []string
	Headers  map[string]string
	Services schema.ServiceMap
}

func (*ProviderOptions) ParseOptionBlock

func (p *ProviderOptions) ParseOptionBlock(block schema.OptionBlock) error

Jump to

Keyboard shortcuts

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