jx/tests/mocks/fooresource.go

18 lines
510 B
Go

// Copyright 2024 Matthew Rich <matthewrich.conf@gmail.com>. All rights reserved.
package mocks
import (
"context"
_ "gopkg.in/yaml.v3"
)
func NewFooResource() *MockResource {
return &MockResource {
InjectType: func() string { return "foo" },
InjectResolveId: func(ctx context.Context) string { return "bar" },
InjectRead: func(ctx context.Context) ([]byte, error) { return nil,nil },
InjectLoadDecl: func(string) error { return nil },
InjectApply: func() error { return nil },
}
}