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

Struct ForgeCredentials

params/params.go:1109–1131  ·  view source on GitHub ↗

swagger:model ForgeCredentials

Source from the content-addressed store, hash-verified

1107
1108// swagger:model ForgeCredentials
1109type ForgeCredentials struct {
1110 ID uint `json:"id,omitempty"`
1111 Name string `json:"name,omitempty"`
1112 Description string `json:"description,omitempty"`
1113 APIBaseURL string `json:"api_base_url,omitempty"`
1114 UploadBaseURL string `json:"upload_base_url,omitempty"`
1115 BaseURL string `json:"base_url,omitempty"`
1116 CABundle []byte `json:"ca_bundle,omitempty"`
1117 AuthType ForgeAuthType `json:"auth-type,omitempty"`
1118
1119 ForgeType EndpointType `json:"forge_type,omitempty"`
1120
1121 Repositories []Repository `json:"repositories,omitempty"`
1122 Organizations []Organization `json:"organizations,omitempty"`
1123 Enterprises []Enterprise `json:"enterprises,omitempty"`
1124 Endpoint ForgeEndpoint `json:"endpoint,omitempty"`
1125 CreatedAt time.Time `json:"created_at,omitempty"`
1126 UpdatedAt time.Time `json:"updated_at,omitempty"`
1127 RateLimit *GithubRateLimit `json:"rate_limit,omitempty"`
1128
1129 // Do not serialize sensitive info.
1130 CredentialsPayload []byte `json:"-"`
1131}
1132
1133func (g ForgeCredentials) GetID() uint {
1134 return g.ID

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected