swagger:model Enterprise
| 902 | |
| 903 | // swagger:model Enterprise |
| 904 | type 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 | |
| 925 | func (e Enterprise) GetCreatedAt() time.Time { |
| 926 | return e.CreatedAt |
nothing calls this directly
no outgoing calls
no test coverage detected