namespace

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Namespace

type Namespace struct {
	ID            string
	Format        string
	Compatibility string
	Description   string
	CreatedAt     time.Time
	UpdatedAt     time.Time
}

type Service

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

func NewService

func NewService(repository Repository) *Service

func (Service) Create

func (s Service) Create(ctx context.Context, ns Namespace) (Namespace, error)

func (Service) Delete

func (s Service) Delete(ctx context.Context, name string) error

func (Service) Get

func (s Service) Get(ctx context.Context, name string) (Namespace, error)

func (Service) List

func (s Service) List(ctx context.Context) ([]Namespace, error)

func (Service) Update

func (s Service) Update(ctx context.Context, ns Namespace) (Namespace, error)

Jump to

Keyboard shortcuts

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