Documentation ¶
Index ¶
- Variables
- type Driver
- type Entity
- type Option
- func WithBucket(bucket string) Option
- func WithClient(client *s3.Client) Option
- func WithClientset(clientset *kubernetes.Clientset) Option
- func WithConfigmap(configmap string) Option
- func WithDatasource(datasource string) Option
- func WithDir(dir string) Option
- func WithDriver(driver Driver) Option
- func WithFrom(fs fs.ReadFileFS) Option
- func WithGORMDriver(driver string) Option
- func WithGORMDsn(dsn string) Option
- func WithKubeconfig(kubeconfig string) Option
- func WithKubeconfigPath(kubeconfigPath string) Option
- func WithMongoDBCollection(collection string) Option
- func WithMongoDBName(name string) Option
- func WithMongoDBURL(url string) Option
- func WithName(file string) Option
- func WithNamespace(namespace string) Option
- func WithPrefixHook(hook PrefixHook) Option
- func WithProjectName(projectName string) Option
- func WithProvider(provider Provider) Option
- func WithRegion(region string) Option
- func WithTimeout(timeout time.Duration) Option
- func WithWatch(watch bool) Option
- type Options
- type PrefixHook
- type Provider
- type Scheme
- type Sourcer
Constants ¶
This section is empty.
Variables ¶
View Source
var Extends = []Scheme{SchemeYaml, SchemeYml, SchemeJSOM}
Extends extends
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Options)
Option option
func WithClientset ¶ added in v0.1.7
func WithClientset(clientset *kubernetes.Clientset) Option
WithClientset set k8s clientset
func WithConfigmap ¶ added in v0.1.7
WithConfigmap set k8s configmap name
func WithGORMDriver ¶ added in v0.1.3
func WithGORMDsn ¶ added in v0.1.3
func WithKubeconfig ¶ added in v0.1.7
WithKubeconfig set k8s kubeconfig
func WithKubeconfigPath ¶ added in v0.1.7
WithKubeconfigPath set k8s kubeconfig path
func WithMongoDBCollection ¶
WithMongoDBCollection set mongodb collection
func WithNamespace ¶ added in v0.1.7
WithNamespace set k8s namespace
func WithPrefixHook ¶ added in v0.1.7
func WithPrefixHook(hook PrefixHook) Option
WithPrefixHook set prefix hook
func WithProjectName ¶
WithProjectName set projectName
type Options ¶
type Options struct { Provider Provider Driver Driver Name string Extend Scheme Dir string Region string Bucket string ProjectName string Timeout time.Duration Client *s3.Client FS fs.ReadFileFS MongoDBURL string MongoDBName string MongoDBCollection string Datasource string GORMDriver string GORMDsn string Watch bool Namespace string Configmap string PrefixHook PrefixHook Clientset *kubernetes.Clientset Kubeconfig string KubeconfigPath string }
Options options
type PrefixHook ¶ added in v0.1.7
type PrefixHook interface {
Init()
}
Click to show internal directories.
Click to hide internal directories.