Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get[T any](c ConfigIface, path ...string) (value T)
Types ¶
type ConfigIface ¶
type ConfigIface interface {
Config() *seer.Query
}
ConfigIface is used in the ops for accessing the root of a resource
type ErrorWrapper ¶
ErrorWrapper is used to wrap "sync failed with %s" to "on application `name`; sync failed with"
type Op ¶
type Op func(ConfigIface) []*seer.Query
type Resource ¶
type Resource struct { ResourceIface Root RootMethod Config RootMethod // contains filtered or unexported fields }
Resource contains the default methods, they can be overridden on the resource itself or
func New ¶
func New(seer *seer.Seer, iface ResourceIface, name string) (*Resource, error)
New returns a Basic which is embedded into a resource for generic methods
func NewNoName ¶
func NewNoName(seer *seer.Seer, iface ResourceIface) (*Resource, error)
NewNoName like new returns a Basic which is embedded into a resource the only difference is no name is taken in the function or checked
type ResourceGetter ¶
type ResourceIface ¶
type RootMethod ¶
type RootMethod func() *seer.Query
RootMethod returns a query for the root location of a resource
Click to show internal directories.
Click to hide internal directories.