Documentation ¶
Index ¶
- Variables
- func BANNER(msg string, args ...any)
- func DIFF[Type any](prefix string, this, that Type)
- func OUT(msg string, args ...any)
- func Run(ctx context.Context) (err error)
- func Version() string
- type BackstageOptions
- type ImportOptions
- type InitOptions
- type JsonnetOptions
- type SourceOptions
- type SyncOptions
- type TypesOptions
- type ValidateOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Commit = "none" Date = "unknown" GoVersion = runtime.Version() )
Set via compiler flags
View Source
var ( AnnotationSyncID = "incident.io/catalog-importer/sync-id" AnnotationLastSyncAt = "incident.io/catalog-importer/last-sync-at" AnnotationVersion = "incident.io/catalog-importer/version" )
Functions ¶
Types ¶
type BackstageOptions ¶
func (*BackstageOptions) Bind ¶
func (opt *BackstageOptions) Bind(cmd *kingpin.CmdClause) *BackstageOptions
type ImportOptions ¶
type ImportOptions struct { APIEndpoint string APIKey string RunSync bool RunSyncDryRun bool Files []string Name string Description string TypeName string SourceExternalID string SourceName string }
func (*ImportOptions) Bind ¶
func (opt *ImportOptions) Bind(cmd *kingpin.CmdClause) *ImportOptions
type InitOptions ¶
type InitOptions struct { }
func (*InitOptions) Bind ¶
func (opt *InitOptions) Bind(cmd *kingpin.CmdClause) *InitOptions
type JsonnetOptions ¶
type JsonnetOptions struct {
Filename string
}
func (*JsonnetOptions) Bind ¶
func (opt *JsonnetOptions) Bind(cmd *kingpin.CmdClause) *JsonnetOptions
type SourceOptions ¶
func (*SourceOptions) Bind ¶
func (opt *SourceOptions) Bind(cmd *kingpin.CmdClause) *SourceOptions
type SyncOptions ¶
type SyncOptions struct { ConfigFile string APIEndpoint string APIKey string Targets []string SampleLength int DryRun bool Prune bool AllowDeleteAll bool SourceRepoUrl string }
func (*SyncOptions) Bind ¶
func (opt *SyncOptions) Bind(cmd *kingpin.CmdClause) *SyncOptions
type TypesOptions ¶
func (*TypesOptions) Bind ¶
func (opt *TypesOptions) Bind(cmd *kingpin.CmdClause) *TypesOptions
type ValidateOptions ¶
type ValidateOptions struct {
ConfigFile string
}
func (*ValidateOptions) Bind ¶
func (opt *ValidateOptions) Bind(cmd *kingpin.CmdClause) *ValidateOptions
Click to show internal directories.
Click to hide internal directories.