specmanager

package
v0.0.0-alpha3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSource

func AddSource(source SpecificationSource)

Types

type KongServiceSpec

type KongServiceSpec struct {
	Contents  string `json:"contents"`
	CreatedAt int    `json:"created_at"`
	ID        string `json:"id"`
	Path      string `json:"path"`
	Checksum  string `json:"checksum"`
}

func GetSpecification

func GetSpecification(ctx context.Context, service *kong.Service) (*KongServiceSpec, error)

type SpecificationSource

type SpecificationSource interface {
	Name() *string
	GetSpecForService(ctx context.Context, service *kong.Service) (*KongServiceSpec, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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