Documentation ¶
Index ¶
- type AddOrgMemberRequest
- type CreateOrgInvitationRequest
- type CreateOrgRequest
- type CreateUpdateProjectGroupRequest
- type CreateUpdateProjectRequest
- type CreateUpdateRemoteSourceRequest
- type CreateUpdateSecretRequest
- type CreateUpdateVariableRequest
- type CreateUserLARequest
- type CreateUserRequest
- type CreateUserTokenRequest
- type CreateUserTokenResponse
- type MaintenanceStatusResponse
- type OrgInvitationActionRequest
- type OrgInvitationActionType
- type OrgMemberResponse
- type Project
- type ProjectGroup
- type Secret
- type UpdateOrgRequest
- type UpdateUserLARequest
- type UpdateUserRequest
- type User
- type UserOrgResponse
- type Variable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddOrgMemberRequest ¶
type AddOrgMemberRequest struct {
Role cstypes.MemberRole
}
type CreateOrgInvitationRequest ¶ added in v0.8.0
type CreateOrgInvitationRequest struct { UserRef string Role cstypes.MemberRole }
type CreateOrgRequest ¶ added in v0.7.0
type CreateOrgRequest struct { Name string Visibility cstypes.Visibility CreatorUserID string }
type CreateUpdateProjectGroupRequest ¶ added in v0.7.0
type CreateUpdateProjectGroupRequest struct { Name string Parent cstypes.Parent Visibility cstypes.Visibility }
type CreateUpdateProjectRequest ¶ added in v0.7.0
type CreateUpdateProjectRequest struct { Name string Parent cstypes.Parent Visibility cstypes.Visibility RemoteRepositoryConfigType cstypes.RemoteRepositoryConfigType RemoteSourceID string LinkedAccountID string RepositoryID string RepositoryPath string SSHPrivateKey string SkipSSHHostKeyCheck bool PassVarsToForkedPR bool DefaultBranch string MembersCanPerformRunActions bool }
type CreateUpdateRemoteSourceRequest ¶ added in v0.7.0
type CreateUpdateSecretRequest ¶ added in v0.7.0
type CreateUpdateVariableRequest ¶ added in v0.7.0
type CreateUpdateVariableRequest struct { Name string Values []cstypes.VariableValue }
type CreateUserLARequest ¶
type CreateUserLARequest struct { RemoteSourceName string `json:"remote_source_name"` RemoteUserID string `json:"remote_user_id"` RemoteUserName string `json:"remote_user_name"` UserAccessToken string `json:"user_access_token"` Oauth2AccessToken string `json:"oauth2_access_token"` Oauth2RefreshToken string `json:"oauth2_refresh_token"` Oauth2AccessTokenExpiresAt time.Time `json:"oauth_2_access_token_expires_at"` }
type CreateUserRequest ¶
type CreateUserRequest struct { UserName string `json:"user_name"` CreateUserLARequest *CreateUserLARequest `json:"create_user_la_request"` }
type CreateUserTokenRequest ¶
type CreateUserTokenRequest struct {
TokenName string `json:"token_name"`
}
type CreateUserTokenResponse ¶
type MaintenanceStatusResponse ¶ added in v0.8.0
type OrgInvitationActionRequest ¶ added in v0.8.0
type OrgInvitationActionRequest struct {
Action OrgInvitationActionType `json:"action_type"`
}
type OrgInvitationActionType ¶ added in v0.8.0
type OrgInvitationActionType string
const ( Accept OrgInvitationActionType = "accept" Reject OrgInvitationActionType = "reject" )
func (OrgInvitationActionType) IsValid ¶ added in v0.8.0
func (a OrgInvitationActionType) IsValid() bool
type OrgMemberResponse ¶
type OrgMemberResponse struct { User *cstypes.User Role cstypes.MemberRole }
type Project ¶
type Project struct { *cstypes.Project // dynamic data OwnerType cstypes.ObjectKind OwnerID string Path string ParentPath string GlobalVisibility cstypes.Visibility }
Project augments cstypes.Project with dynamic data
type ProjectGroup ¶
type ProjectGroup struct { *cstypes.ProjectGroup // dynamic data OwnerType cstypes.ObjectKind OwnerID string Path string ParentPath string GlobalVisibility cstypes.Visibility }
ProjectGroup augments cstypes.ProjectGroup with dynamic data
type UpdateOrgRequest ¶ added in v0.8.0
type UpdateOrgRequest struct {
Visibility cstypes.Visibility
}
type UpdateUserLARequest ¶
type UpdateUserLARequest struct { RemoteUserID string `json:"remote_user_id"` RemoteUserName string `json:"remote_user_name"` UserAccessToken string `json:"user_access_token"` Oauth2AccessToken string `json:"oauth2_access_token"` Oauth2RefreshToken string `json:"oauth2_refresh_token"` Oauth2AccessTokenExpiresAt time.Time `json:"oauth_2_access_token_expires_at"` }
type UpdateUserRequest ¶
type UpdateUserRequest struct {
UserName string `json:"user_name"`
}
type User ¶ added in v0.8.0
type User struct { *cstypes.User // dynamic data Tokens []*cstypes.UserToken LinkedAccounts []*cstypes.LinkedAccount }
User augments cstypes.User with the user tokens and linked accouts
type UserOrgResponse ¶ added in v0.9.0
type UserOrgResponse struct { Organization *cstypes.Organization Role cstypes.MemberRole }
Click to show internal directories.
Click to hide internal directories.