mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 00:35:12 +08:00

* Provisioning: Jobs: Define repository name field * Provisioning: Jobs: Separate options per job type * Provisioning: Define a sanitised settings resource * Provisioning: Jobs: Define a job summary * Provisioning: Remove linting * Provisioning: Update docs for a few fields * Provisioning: Remove HelloWorld * Provisioning: Replace Repository with Message in job info * Provisioning: Remove YAML support * Provisioning: Remove custom folder specification * Provisioning: Support read-only repositories * Provisioning: Remove edit options * Provisioning: Add sync options for repositories * Provisioning: Add resource statistics * Provisioning: Make slices atomic lists * Provisioning: Message list needs to exist even if empty If we don't do this, we can't clear the messages field, leading to buggy UX. * Provisioning: Support incremental syncing * Provisioning: Remove the 'items' subresource workaround * Provisioning: Add resource list * Provisioning: Reformat * Provisioning: Declare new types * OpenAPI: Generate openapi JSON spec from generated code * Codegen: Generate OpenAPI spec * Provisioning: Support generating frontend API * Codegen: Generate Go code * Provisioning: Define the base API * Codegen: Generate frontend endpoints for provisioning * Refactor: yarn prettier:write * Provisioning: Tiger team takes ownership * Chore: Remove dir we haven't added yet * Provisioning: Remove frontend * Test: Update example repositories
67 lines
3.2 KiB
Go
67 lines
3.2 KiB
Go
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
// Code generated by applyconfiguration-gen. DO NOT EDIT.
|
|
|
|
package v0alpha1
|
|
|
|
// RepositoryStatusApplyConfiguration represents a declarative configuration of the RepositoryStatus type for use
|
|
// with apply.
|
|
type RepositoryStatusApplyConfiguration struct {
|
|
ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
|
|
Health *HealthStatusApplyConfiguration `json:"health,omitempty"`
|
|
Sync *SyncStatusApplyConfiguration `json:"sync,omitempty"`
|
|
Stats []ResourceCountApplyConfiguration `json:"stats,omitempty"`
|
|
Webhook *WebhookStatusApplyConfiguration `json:"webhook,omitempty"`
|
|
}
|
|
|
|
// RepositoryStatusApplyConfiguration constructs a declarative configuration of the RepositoryStatus type for use with
|
|
// apply.
|
|
func RepositoryStatus() *RepositoryStatusApplyConfiguration {
|
|
return &RepositoryStatusApplyConfiguration{}
|
|
}
|
|
|
|
// WithObservedGeneration sets the ObservedGeneration field in the declarative configuration to the given value
|
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
|
// If called multiple times, the ObservedGeneration field is set to the value of the last call.
|
|
func (b *RepositoryStatusApplyConfiguration) WithObservedGeneration(value int64) *RepositoryStatusApplyConfiguration {
|
|
b.ObservedGeneration = &value
|
|
return b
|
|
}
|
|
|
|
// WithHealth sets the Health field in the declarative configuration to the given value
|
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
|
// If called multiple times, the Health field is set to the value of the last call.
|
|
func (b *RepositoryStatusApplyConfiguration) WithHealth(value *HealthStatusApplyConfiguration) *RepositoryStatusApplyConfiguration {
|
|
b.Health = value
|
|
return b
|
|
}
|
|
|
|
// WithSync sets the Sync field in the declarative configuration to the given value
|
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
|
// If called multiple times, the Sync field is set to the value of the last call.
|
|
func (b *RepositoryStatusApplyConfiguration) WithSync(value *SyncStatusApplyConfiguration) *RepositoryStatusApplyConfiguration {
|
|
b.Sync = value
|
|
return b
|
|
}
|
|
|
|
// WithStats adds the given value to the Stats field in the declarative configuration
|
|
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
|
// If called multiple times, values provided by each call will be appended to the Stats field.
|
|
func (b *RepositoryStatusApplyConfiguration) WithStats(values ...*ResourceCountApplyConfiguration) *RepositoryStatusApplyConfiguration {
|
|
for i := range values {
|
|
if values[i] == nil {
|
|
panic("nil value passed to WithStats")
|
|
}
|
|
b.Stats = append(b.Stats, *values[i])
|
|
}
|
|
return b
|
|
}
|
|
|
|
// WithWebhook sets the Webhook field in the declarative configuration to the given value
|
|
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
|
|
// If called multiple times, the Webhook field is set to the value of the last call.
|
|
func (b *RepositoryStatusApplyConfiguration) WithWebhook(value *WebhookStatusApplyConfiguration) *RepositoryStatusApplyConfiguration {
|
|
b.Webhook = value
|
|
return b
|
|
}
|