config

package
v0.0.0-...-00e52fa Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(raw []byte) (*v1alpha1.Config, error)

Types

type Atlas

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

func NewAtlas

func NewAtlas(loader Loader) *Atlas

func (*Atlas) Load

func (a *Atlas) Load(ctx context.Context, pkg string) (*openapi3.T, error)

type KinOpeAPI

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

func NewKinOpeAPI

func NewKinOpeAPI(fs afero.Fs) *KinOpeAPI

func (*KinOpeAPI) Load

func (a *KinOpeAPI) Load(_ context.Context, path string) (*openapi3.T, error)

type Loader

type Loader interface {
	Load(ctx context.Context, path string) (*openapi3.T, error)
}

type LoaderMock

type LoaderMock struct {
	mock.Mock
}

LoaderMock is an autogenerated mock type for the Loader type

func NewLoaderMock

func NewLoaderMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *LoaderMock

NewLoaderMock creates a new instance of LoaderMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*LoaderMock) EXPECT

func (_m *LoaderMock) EXPECT() *LoaderMock_Expecter

func (*LoaderMock) Load

func (_mock *LoaderMock) Load(ctx context.Context, path string) (*openapi3.T, error)

Load provides a mock function for the type LoaderMock

type LoaderMock_Expecter

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

func (*LoaderMock_Expecter) Load

func (_e *LoaderMock_Expecter) Load(ctx interface{}, path interface{}) *LoaderMock_Load_Call

Load is a helper method to define mock.On call

  • ctx context.Context
  • path string

type LoaderMock_Load_Call

type LoaderMock_Load_Call struct {
	*mock.Call
}

LoaderMock_Load_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Load'

func (*LoaderMock_Load_Call) Return

func (*LoaderMock_Load_Call) Run

func (_c *LoaderMock_Load_Call) Run(run func(ctx context.Context, path string)) *LoaderMock_Load_Call

func (*LoaderMock_Load_Call) RunAndReturn

func (_c *LoaderMock_Load_Call) RunAndReturn(run func(ctx context.Context, path string) (*openapi3.T, error)) *LoaderMock_Load_Call

Jump to

Keyboard shortcuts

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