http

package
v0.0.0-...-4854395 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(c client.Client) error

Types

type PreviewApi

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

type PreviewDTO

type PreviewDTO struct {
	Name   string                 `json:"name"`
	Spec   v1alpha1.PreviewSpec   `json:"spec"`
	Status v1alpha1.PreviewStatus `json:"status"`
}

TODO: Should this be more wrapped/not reuse the internal types?

type PreviewService

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

func BuildPreviewService

func BuildPreviewService(c client.Client) PreviewService

func (*PreviewService) CreatePreview

func (svc *PreviewService) CreatePreview(ctx context.Context, request previewCreateRequest) (*v1alpha1.Preview, error)

func (*PreviewService) GetPreview

func (svc *PreviewService) GetPreview(ctx context.Context, name string) (*v1alpha1.Preview, error)

func (*PreviewService) ListPreviews

func (svc *PreviewService) ListPreviews(ctx context.Context) ([]v1alpha1.Preview, error)

I totally just let the AI write this whole thing for me. No clue if it works :)

Jump to

Keyboard shortcuts

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