components

package
v0.0.0-...-bbdcebb Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToRouter

func AddToRouter(log logr.Logger, ociClient ociclient.ExtendedClient, router *routes.Router)

Types

type Component

type Component struct {
	Name    string `json:"name"`
	Version string `json:"version"`
	Ref     string `json:"ref"`
}

type ListComponentVersionsRequest

type ListComponentVersionsRequest struct {
	RepositoryContext string `json:"repositoryContext"`
	ComponentName     string `json:"componentName"`
}

type ListComponentVersionsResponse

type ListComponentVersionsResponse struct {
	RepositoryContext string   `json:"repositoryContext"`
	ComponentName     string   `json:"componentName"`
	Versions          []string `json:"versions"`
}

type ListComponentsRequest

type ListComponentsRequest struct {
	RepositoryContext string `json:"repositoryContext"`
}

type ListComponentsResponse

type ListComponentsResponse struct {
	RepositoryContext string   `json:"repositoryContext"`
	Components        []string `json:"components"`
}

type Router

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

Router is the router that contains all component related api routes

func New

func New(log logr.Logger, ociClient ociclient.ExtendedClient) *Router

func (*Router) ListComponentVersions

func (r *Router) ListComponentVersions(data []byte) (*routes.Response, error)

func (*Router) ListComponents

func (r *Router) ListComponents(data []byte) (*routes.Response, error)

Jump to

Keyboard shortcuts

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