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

Struct Enterprise

params/params.go:904–923  ·  view source on GitHub ↗

swagger:model Enterprise

Source from the content-addressed store, hash-verified

902
903// swagger:model Enterprise
904type Enterprise struct {
905 ID string `json:"id,omitempty"`
906 Name string `json:"name,omitempty"`
907 Pools []Pool `json:"pool,omitempty"`
908 // CredentialName is the name of the credentials associated with the enterprise.
909 // This field is now deprecated. Use CredentialsID instead. This field will be
910 // removed in v0.2.0.
911 CredentialsName string `json:"credentials_name,omitempty"`
912 Credentials ForgeCredentials `json:"credentials,omitempty"`
913 CredentialsID uint `json:"credentials_id,omitempty"`
914 PoolManagerStatus PoolManagerStatus `json:"pool_manager_status,omitempty"`
915 PoolBalancerType PoolBalancerType `json:"pool_balancing_type,omitempty"`
916 Endpoint ForgeEndpoint `json:"endpoint,omitempty"`
917 CreatedAt time.Time `json:"created_at,omitempty"`
918 UpdatedAt time.Time `json:"updated_at,omitempty"`
919 Events []EntityEvent `json:"events,omitempty"`
920 AgentMode bool `json:"agent_mode"`
921 // Do not serialize sensitive info.
922 WebhookSecret string `json:"-"`
923}
924
925func (e Enterprise) GetCreatedAt() time.Time {
926 return e.CreatedAt

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected