models

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtendedRepository

type ExtendedRepository struct {
	ProjectKey     string                                `json:"projectKey,omitempty" yaml:"projectKey,omitempty"`
	RepositorySlug string                                `json:"repositorySlug,omitempty" yaml:"repositorySlug,omitempty"`
	DefaultBranch  string                                `json:"defaultBranch,omitempty" yaml:"defaultBranch,omitempty"`
	RestRepository *openapi.RestRepository               `json:"restRepository,omitempty" yaml:"restRepository,omitempty"`
	Webhooks       *[]openapi.RestWebhook                `json:"webhooks,omitempty" yaml:"webhooks,omitempty"`
	Manifest       *map[string]interface{}               `json:"manifest,omitempty" yaml:"manifest,omitempty"`
	RequiredBuilds *[]openapi.RestRequiredBuildCondition `json:"requiredBuilds,omitempty" yaml:"requiredBuilds,omitempty"`
}

Extended repository struct

type ProjectYaml added in v0.4.1

type ProjectYaml struct {
	Projects []openapi.RestProject `json:"projects,omitempty" yaml:"projects,omitempty"`
}

type RepoDiff added in v0.8.0

type RepoDiff struct {
	Create []ExtendedRepository `json:"create" yaml:"create"`
	Update []ExtendedRepository `json:"update" yaml:"update"`
	Delete []ExtendedRepository `json:"delete" yaml:"delete"`
}

RepoDiff is a generic diff container for repository-scoped items. The concrete items (required-builds, webhooks) live inside ExtendedRepository fields.

type RepositoryOptions

type RepositoryOptions struct {
	Repository     bool
	Webhooks       bool
	DefaultBranch  bool
	Manifest       bool
	ManifestPath   *string
	RequiredBuilds bool
}

type RepositoryYaml

type RepositoryYaml struct {
	Repositories []ExtendedRepository `json:"repositories,omitempty" yaml:"repositories,omitempty"`
}

type RollbackPlan added in v0.8.0

type RollbackPlan struct {
	Delete []ExtendedRepository `json:"delete" yaml:"delete"`
	Update []ExtendedRepository `json:"update" yaml:"update"`
	Create []ExtendedRepository `json:"create" yaml:"create"`
}

RollbackPlan represents a set of repository-level changes that can be executed (apply) or reversed (rollback). It is generic for different domains (required-builds, webhooks) since the payload lives inside ExtendedRepository fields (RequiredBuilds or Webhooks).

type User added in v0.8.0

type User struct {
	Name         string `json:"name" yaml:"name"`
	DisplayName  string `json:"displayName" yaml:"displayName"`
	EmailAddress string `json:"emailAddress" yaml:"emailAddress"`
}

User represents a user for YAML parsing (with string fields)

type UserYaml added in v0.8.0

type UserYaml struct {
	Users []User `json:"users,omitempty" yaml:"users,omitempty"`
}

type WebhookResponse

type WebhookResponse struct {
	Size       int                   `json:"size,omitempty" yaml:"size,omitempty"`
	Limit      int                   `json:"limit,omitempty" yaml:"limit,omitempty"`
	IsLastPage bool                  `json:"isLastPage,omitempty" yaml:"isLastPage,omitempty"`
	Values     []openapi.RestWebhook `json:"values,omitempty" yaml:"values,omitempty"`
	Start      int                   `json:"start,omitempty" yaml:"start,omitempty"`
}

Jump to

Keyboard shortcuts

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