subtype

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package subtype contains a Service type that can be used to hold all resources of a certain subtype.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	Resource(name string) interface{}
	Replace(resources map[resource.Name]interface{}) error
}

Service defines an service that holds and replaces resources.

func New

func New(r map[resource.Name]interface{}) (Service, error)

New creates a new subtype service, which holds and replaces resources belonging to that subtype.

Jump to

Keyboard shortcuts

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