DefaultGitLabProvider Class

Assembly
Cake.GitLab.dll
Namespace
Cake.GitLab
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IGitLabProvider"] click Interface0 "/api/Cake.GitLab/IGitLabProvider" Type["DefaultGitLabProvider"] class Type type-node

Syntax

public class DefaultGitLabProvider : IGitLabProvider

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Constructors

Name Summary
DefaultGitLabProvider(ICakeContext) Initializes the default implementation of IGitLabProvider from a build context

Methods

Name Value Summary
GetClient(string, string) IGitLabClient
GetPipelineAsync(string, string, ProjectId, long) Task<Pipeline>
Implements the functionality of Cake.GitLab.GitLabAliases.GitLabGetPipelineAsync(Cake.Core.ICakeContext,System.String,System.String,NGitLab.Models.ProjectId,System.Int64)
RepositoryCreateTagAsync(string, string, ProjectId, string, string) Task<Tag>
Implements the functionality of Cake.GitLab.GitLabAliases.GitLabRepositoryCreateTagAsync(Cake.Core.ICakeContext,System.String,System.String,NGitLab.Models.ProjectId,System.String,System.String)
RepositoryDownloadFileAsync(string, string, ProjectId, string, string, FilePath) Task
Implements the functionality of Cake.GitLab.GitLabAliases.GitLabRepositoryDownloadFileAsync(Cake.Core.ICakeContext,System.String,System.String,NGitLab.Models.ProjectId,System.String,System.String,Cake.Core.IO.FilePath)
RepositoryGetBranchesAsync(string, string, ProjectId) Task<IReadOnlyCollection<Branch>>
Implements the functionality of Cake.GitLab.GitLabAliases.GitLabRepositoryGetBranchesAsync(Cake.Core.ICakeContext,System.String,System.String,NGitLab.Models.ProjectId)
SetPipelineNameAsync(string, string, ProjectId, long, string) Task
Implements the functionality of Cake.GitLab.GitLabAliases.GitLabSetPipelineNameAsync(Cake.Core.ICakeContext,System.String,System.String,NGitLab.Models.ProjectId,System.Int64,System.String)
TryGetCurrentProjectIdentity() ProjectIdentity
Implements the functionality of Cake.GitLab.GitLabAliases.GitLabTryGetCurrentProjectIdentity(Cake.Core.ICakeContext)
TryGetCurrentServerIdentity() ServerIdentity
Implements the functionality of Cake.GitLab.GitLabAliases.GitLabTryGetCurrentServerIdentity(Cake.Core.ICakeContext)

Extension Methods

Name Value Summary
Dump<DefaultGitLabProvider>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<DefaultGitLabProvider>(DefaultGitLabProvider[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<DefaultGitLabProvider>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
NotNull<DefaultGitLabProvider>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
ThrowIfNull<DefaultGitLabProvider>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<DefaultGitLabProvider>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin