Documentation ¶
Index ¶
- Constants
- func CreateFileFromString(outFile string, data string) error
- func Tar(src string, writers ...io.Writer) error
- type CommitableSource
- type Factory
- type GenericOptions
- type Options
- func (o *Options) Get(name string) (interface{}, bool, error)
- func (o *Options) GetBool(name string) (bool, bool, error)
- func (o *Options) GetInt(name string) (int, bool, error)
- func (o *Options) GetString(name string) (string, bool, error)
- func (o *Options) GetTime(name string) (time.Time, bool, error)
- type Source
- type SourceFactoryBuilder
Constants ¶
View Source
const ( IncludeDeleted string = "includeDeleted" BeforeDate = "beforeDate" AfterDate = "afterDate" DryRun = "dryRun" )
View Source
const ( StartDate = "startDate" EndDate = "endDate" EMPTY = "" )
Variables ¶
This section is empty.
Functions ¶
func CreateFileFromString ¶
Creates file with given data content
Types ¶
type CommitableSource ¶
type CommitableSource interface { Source Commit( ctx context.Context, currentMeteringExport *api.MeteringExport, bundle *bundle.BundleFile, opts GenericOptions, ) (count int, err error) }
func NewDataService ¶
func NewDataService( dataService dataservice.Client, printer printers.TablePrinter, ) (CommitableSource, error)
type GenericOptions ¶
type GenericOptions interface { GetString(string) (string, bool, error) GetInt(string) (int, bool, error) GetBool(string) (bool, bool, error) GetTime(string) (time.Time, bool, error) Get(string) (interface{}, bool, error) }
func EmptyOptions ¶
func EmptyOptions() GenericOptions
func NewDataServiceOptions ¶
func NewDataServiceOptions(includeDeleted bool, beforeDate, afterDate time.Time, dryRun bool) GenericOptions
func NewOptions ¶
func NewOptions(key string, value interface{}, fields ...interface{}) GenericOptions
type Source ¶
type Source interface { Pull( ctx context.Context, currentMeteringExport *api.MeteringExport, bundle *bundle.BundleFile, options GenericOptions, ) (count int, err error) GetResponse() string }
func NewIlmtSource ¶
type SourceFactoryBuilder ¶
type SourceFactoryBuilder struct {
// contains filtered or unexported fields
}
func (*SourceFactoryBuilder) Build ¶
func (s *SourceFactoryBuilder) Build() Factory
func (*SourceFactoryBuilder) SetConfigFlags ¶
func (s *SourceFactoryBuilder) SetConfigFlags(rhmConfigFlags *config.ConfigFlags) *SourceFactoryBuilder
func (*SourceFactoryBuilder) SetPrinter ¶
func (s *SourceFactoryBuilder) SetPrinter( p printers.Printer, ) *SourceFactoryBuilder
Click to show internal directories.
Click to hide internal directories.