mock

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterAppsByResourceGroup

func FilterAppsByResourceGroup(apps []models.ContainerApp, resourceGroup string) []models.ContainerApp

FilterAppsByResourceGroup is a helper function to filter apps by resource group

func GetContainerKey

func GetContainerKey(appName, revisionName string) string

GetContainerKey returns the key used to store containers in the mock data

Types

type Provider

type Provider struct{}

Provider implements the DataProvider interface using mock data

func NewProvider

func NewProvider() (*Provider, error)

NewProvider creates a new mock data provider

func (*Provider) GetAppDetails

func (p *Provider) GetAppDetails(ctx context.Context, name, resourceGroup string) (string, error)

GetAppDetails returns detailed JSON information for a specific app

func (*Provider) ListContainerApps

func (p *Provider) ListContainerApps(ctx context.Context, resourceGroup string) ([]models.ContainerApp, error)

ListContainerApps returns container apps, optionally filtered by resource group

func (*Provider) ListContainers

func (p *Provider) ListContainers(ctx context.Context, app models.ContainerApp, revisionName string) ([]models.Container, error)

ListContainers returns all containers for a specific app revision

func (*Provider) ListResourceGroups

func (p *Provider) ListResourceGroups(ctx context.Context) ([]models.ResourceGroup, error)

ListResourceGroups returns all available resource groups

func (*Provider) ListRevisions

func (p *Provider) ListRevisions(ctx context.Context, appName, resourceGroup string) ([]models.Revision, error)

ListRevisions returns all revisions for a specific container app

Jump to

Keyboard shortcuts

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