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 ¶ added in v0.31.0
func (*BackstageOptions) Bind ¶ added in v0.31.0
func (opt *BackstageOptions) Bind(cmd *kingpin.CmdClause) *BackstageOptions
type ImportOptions ¶ added in v1.4.0
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 ¶ added in v1.4.0
func (opt *ImportOptions) Bind(cmd *kingpin.CmdClause) *ImportOptions
type InitOptions ¶ added in v0.23.0
type InitOptions struct { }
func (*InitOptions) Bind ¶ added in v0.23.0
func (opt *InitOptions) Bind(cmd *kingpin.CmdClause) *InitOptions
type JsonnetOptions ¶ added in v0.20.0
type JsonnetOptions struct {
Filename string
}
func (*JsonnetOptions) Bind ¶ added in v0.20.0
func (opt *JsonnetOptions) Bind(cmd *kingpin.CmdClause) *JsonnetOptions
type SourceOptions ¶ added in v0.22.0
func (*SourceOptions) Bind ¶ added in v0.22.0
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 }
func (*SyncOptions) Bind ¶
func (opt *SyncOptions) Bind(cmd *kingpin.CmdClause) *SyncOptions
type TypesOptions ¶ added in v0.24.0
func (*TypesOptions) Bind ¶ added in v0.24.0
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.