types

package
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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 CreateUpdateRemoteSourceRequest struct {
	Name                string
	APIURL              string
	SkipVerify          bool
	Type                cstypes.RemoteSourceType
	AuthType            cstypes.RemoteSourceAuthType
	Oauth2ClientID      string
	Oauth2ClientSecret  string
	SSHHostKey          string
	SkipSSHHostKeyCheck bool
	RegistrationEnabled bool
	LoginEnabled        bool
}

type CreateUpdateSecretRequest added in v0.7.0

type CreateUpdateSecretRequest struct {
	Name             string
	Type             cstypes.SecretType
	Data             map[string]string
	SecretProviderID string
	Path             string
}

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 CreateUserTokenResponse struct {
	Name  string `json:"name"`
	Token string `json:"token"`
}

type MaintenanceStatusResponse added in v0.8.0

type MaintenanceStatusResponse struct {
	RequestedStatus bool
	CurrentStatus   bool
}

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 Secret

type Secret struct {
	*cstypes.Secret

	// dynamic data
	ParentPath string
}

Secret augments cstypes.Secret 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
}

type Variable

type Variable struct {
	*cstypes.Variable

	// dynamic data
	ParentPath string
}

Variable augments cstypes.Variable with dynamic data

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL