provider

package
v0.0.0-...-93be599 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSource

type DataSource struct {
	ResourceOrData
}

func (DataSource) GetTotal

func (ds DataSource) GetTotal() Totals

type Repo

type Repo struct {
	Path string
	Git  *git.Repository
}

func NewRepo

func NewRepo(path string) (*Repo, error)

func (Repo) CheckoutTag

func (r Repo) CheckoutTag(tag string) error

func (Repo) GetVersions

func (r Repo) GetVersions() (*[]Version, error)

type Resource

type Resource struct {
	ResourceOrData

	// resource specific
	SharedCreateUpdate bool
}

func (Resource) GetTotal

func (r Resource) GetTotal() Totals

type ResourceOrData

type ResourceOrData struct {
	Name       string
	Service    *Service
	GoPath     string
	GoFileName string
	TestPaths  []string

	IsTyped     bool
	IsGenerated bool

	SdkAzureSdkGo bool
	SdkKermit     bool
	SdkPandora    bool
	SdkGiovanni   bool

	UsesBuiltInParse bool
}

todo this is a TERRIBLE name, figure something better out.

func (ResourceOrData) GetTotal

func (rds ResourceOrData) GetTotal() Totals

type Service

type Service struct {
	Name string
	Path string // should this just be a *Repo?

	Resources   []Resource
	DataSources []DataSource
}

func (*Service) CalculateDataSourceTotals

func (s *Service) CalculateDataSourceTotals() Totals

func (*Service) CalculateResourceTotals

func (s *Service) CalculateResourceTotals() Totals

func (*Service) CalculateTotals

func (s *Service) CalculateTotals() Totals

func (*Service) CountResourcesDataSources

func (s *Service) CountResourcesDataSources() int

func (*Service) FilterResourcesDatas

func (s *Service) FilterResourcesDatas(f func(rds ResourceOrData) bool) []ResourceOrData

func (*Service) FilterResourcesDatasInterfaced

func (s *Service) FilterResourcesDatasInterfaced(f func(rds interface{}) bool) []ResourceOrData

func (*Service) GetResourceOrDataFor

func (s *Service) GetResourceOrDataFor(file fs.DirEntry, content string) ResourceOrData

func (*Service) ScanDataSources

func (s *Service) ScanDataSources() error

func (*Service) ScanResources

func (s *Service) ScanResources() error

type Totals

type Totals struct {
	Services     int
	Resources    int
	DataSources  int
	SdkTrack1    int
	SdkPandora   int
	SdkKermit    int
	SdkGiovanni  int
	SdkBoth      int
	Typed        int
	CreateUpdate int
	BuiltInParse int
}

func (Totals) Add

func (t Totals) Add(t2 Totals) Totals

type Version

type Version struct {
	Name string
	Date time.Time
	Path string

	Services []Service
}

func (*Version) CalculateDataSourceTotals

func (v *Version) CalculateDataSourceTotals() Totals

func (*Version) CalculateResourceTotals

func (v *Version) CalculateResourceTotals() Totals

func (*Version) CalculateTotals

func (v *Version) CalculateTotals() Totals

func (*Version) ScanServices

func (v *Version) ScanServices() error

Jump to

Keyboard shortcuts

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