MCPcopy Create free account
hub / github.com/cloudbase/garm / Repository

Struct Repository

params/params.go:763–785  ·  view source on GitHub ↗

swagger:model Repository

Source from the content-addressed store, hash-verified

761
762// swagger:model Repository
763type Repository struct {
764 ID string `json:"id,omitempty"`
765 Owner string `json:"owner,omitempty"`
766 Name string `json:"name,omitempty"`
767 Pools []Pool `json:"pool,omitempty"`
768 // CredentialName is the name of the credentials associated with the enterprise.
769 // This field is now deprecated. Use CredentialsID instead. This field will be
770 // removed in v0.2.0.
771 CredentialsName string `json:"credentials_name,omitempty"`
772
773 CredentialsID uint `json:"credentials_id,omitempty"`
774 Credentials ForgeCredentials `json:"credentials,omitempty"`
775 AgentMode bool `json:"agent_mode"`
776
777 PoolManagerStatus PoolManagerStatus `json:"pool_manager_status,omitempty"`
778 PoolBalancerType PoolBalancerType `json:"pool_balancing_type,omitempty"`
779 Endpoint ForgeEndpoint `json:"endpoint,omitempty"`
780 CreatedAt time.Time `json:"created_at,omitempty"`
781 UpdatedAt time.Time `json:"updated_at,omitempty"`
782 Events []EntityEvent `json:"events,omitempty"`
783 // Do not serialize sensitive info.
784 WebhookSecret string `json:"-"`
785}
786
787func (r Repository) GetCredentialsName() string {
788 if r.CredentialsName != "" {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected