common

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2022 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ResourceType_Api = "api"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiDetails

type ApiDetails struct {
	URL string
}

type DetailsResponse

type DetailsResponse[T any] struct {
	Id       string
	Provider string
	Service  string
	Detail   T
}

type ResourceService

type ResourceService interface {
	// Details - The details endpoint
	Details(ctx context.Context, ResourceType, name string) (*DetailsResponse[any], error)
}

ResourceService - Base resource service interface for providers

type ResourceType

type ResourceType = string

type UnimplementResourceService

type UnimplementResourceService struct{}

func (*UnimplementResourceService) Details

Jump to

Keyboard shortcuts

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