common

package
v0.20.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 1 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(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