param

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Copyright © 2018 One Concern

Index

Constants

View Source
const (
	CerialFmtYAM = iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Cerializer

type Cerializer interface {
	FirstCutSidecarFmt(destPath string) error
	CerialString(knownFmt int) (string, error)
}

type FUSEParams

type FUSEParams struct {
	Globals struct {
		SleepInsteadOfExit bool   `json:"sleepInsteadOfExit" yaml:"sleepInsteadOfExit"`
		CoordPoint         string `json:"coordPoint" yaml:"coordPoint"`
		Contributor        struct {
			Name  string `json:"name" yaml:"name"`
			Email string `json:"email" yaml:"email"`
			// contains filtered or unexported fields
		} `json:"contributor" yaml:"contributor"`
		// contains filtered or unexported fields
	} `json:"globalOpts" yaml:"globalOpts"`
	Bundles []fuseParamsBundleParams `json:"bundles" yaml:"bundles"`
	// contains filtered or unexported fields
}

func NewFUSEParams

func NewFUSEParams(fuseOpts ...FUSEParamsOption) (FUSEParams, error)

func (*FUSEParams) AddBundle

func (fuseParams *FUSEParams) AddBundle(bdOpts ...FUSEParamsBDOption) error

func (*FUSEParams) CerialString

func (fuseParams *FUSEParams) CerialString(knownFmt int) (string, error)

func (*FUSEParams) FirstCutSidecarFmt

func (fuseParams *FUSEParams) FirstCutSidecarFmt(destPath string) error

type FUSEParamsBDOption

type FUSEParamsBDOption func(bdParams *fuseParamsBundleParams)

func BDDest

func BDDest(repo string, msg string) FUSEParamsBDOption

func BDDestBundleIDFile

func BDDestBundleIDFile(bundleIDFile string) FUSEParamsBDOption

func BDDestLabel

func BDDestLabel(label string) FUSEParamsBDOption

func BDName

func BDName(name string) FUSEParamsBDOption

func BDSrcByBundleID

func BDSrcByBundleID(path string, repo string, bundle string) FUSEParamsBDOption

func BDSrcByLabel

func BDSrcByLabel(path string, repo string, label string) FUSEParamsBDOption

type FUSEParamsOption

type FUSEParamsOption func(fuseParams *FUSEParams)

func FUSEContributor

func FUSEContributor(name string, email string) FUSEParamsOption

func FUSECoordPoint

func FUSECoordPoint(coordPoint string) FUSEParamsOption

type PGParams

type PGParams struct {
	Globals struct {
		SleepInsteadOfExit      bool   `json:"sleepInsteadOfExit" yaml:"sleepInsteadOfExit"`
		IgnorePGVersionMismatch bool   `json:"ignorePGVersionMismatch" yaml:"ignorePGVersionMismatch"`
		CoordPoint              string `json:"coordPoint" yaml:"coordPoint"`
		Contributor             struct {
			Name  string `json:"name" yaml:"name"`
			Email string `json:"email" yaml:"email"`
			// contains filtered or unexported fields
		} `json:"contributor" yaml:"contributor"`
		// contains filtered or unexported fields
	} `json:"globalOpts" yaml:"globalOpts"`
	Databases []pgParamsDBParams `json:"databases" yaml:"databases"`
	// contains filtered or unexported fields
}

func NewPGParams

func NewPGParams(pgOpts ...PGParamsOption) (PGParams, error)

func (*PGParams) AddDatabase

func (pgParams *PGParams) AddDatabase(dbOpts ...PGParamsDBOption) error

func (*PGParams) CerialString

func (pgParams *PGParams) CerialString(knownFmt int) (string, error)

func (*PGParams) FirstCutSidecarFmt

func (pgParams *PGParams) FirstCutSidecarFmt(destPath string) error

type PGParamsDBOption

type PGParamsDBOption func(dbParams *pgParamsDBParams)

func DBDest

func DBDest(repo string, message string) PGParamsDBOption

func DBDestBundleIDFile

func DBDestBundleIDFile(bundleIDFile string) PGParamsDBOption

func DBDestLabel

func DBDestLabel(label string) PGParamsDBOption

func DBNameAndPort

func DBNameAndPort(name string, port int) PGParamsDBOption

func DBSrcByBundle

func DBSrcByBundle(repo string, bundle string) PGParamsDBOption

func DBSrcByLabel

func DBSrcByLabel(repo string, label string) PGParamsDBOption

type PGParamsOption

type PGParamsOption func(pgParams *PGParams)

func PGContributor

func PGContributor(name string, email string) PGParamsOption

func PGCoordPoint

func PGCoordPoint(coordPoint string) PGParamsOption

Jump to

Keyboard shortcuts

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