types

package
Version: v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 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 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
}

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

type OrgMemberResponse

type OrgMemberResponse struct {
	User *cstypes.User
	Role cstypes.MemberRole
}

type Project

type Project struct {
	*cstypes.Project

	// dynamic data
	OwnerType        cstypes.ConfigType
	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.ConfigType
	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 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 UserOrgsResponse

type UserOrgsResponse 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