Documentation
¶
Overview ¶
Package client implements the interfaces required by the parent lagoon package.
Index ¶
- type Client
- func (c *Client) AddEnvVariable(ctx context.Context, in *schema.EnvVariableInput, out *schema.EnvKeyValue) error
- func (c *Client) AddGroup(ctx context.Context, in *schema.AddGroupInput, out *schema.Group) error
- func (c *Client) AddGroupsToProject(ctx context.Context, in *schema.ProjectGroupsInput, out *schema.Project) error
- func (c *Client) AddNotificationEmail(ctx context.Context, in *schema.AddNotificationEmailInput, ...) error
- func (c *Client) AddNotificationMicrosoftTeams(ctx context.Context, in *schema.AddNotificationMicrosoftTeamsInput, ...) error
- func (c *Client) AddNotificationRocketChat(ctx context.Context, in *schema.AddNotificationRocketChatInput, ...) error
- func (c *Client) AddNotificationSlack(ctx context.Context, in *schema.AddNotificationSlackInput, ...) error
- func (c *Client) AddNotificationToProject(ctx context.Context, in *schema.AddNotificationToProjectInput, ...) error
- func (c *Client) AddNotificationWebhook(ctx context.Context, in *schema.AddNotificationWebhookInput, ...) error
- func (c *Client) AddOrUpdateEnvironment(ctx context.Context, in *schema.AddEnvironmentInput, out *schema.Environment) error
- func (c *Client) AddProject(ctx context.Context, in *schema.AddProjectInput, out *schema.Project) error
- func (c *Client) AddSSHKey(ctx context.Context, in *schema.AddSSHKeyInput, out *schema.SSHKey) error
- func (c *Client) AddUser(ctx context.Context, in *schema.AddUserInput, out *schema.User) error
- func (c *Client) AddUserToGroup(ctx context.Context, in *schema.UserGroupRoleInput, out *schema.Group) error
- func (c *Client) EnvironmentByName(ctx context.Context, name string, projectID uint, ...) error
- func (c *Client) LagoonAPIVersion(ctx context.Context, lagoonAPIVersion *schema.LagoonVersion) error
- func (c *Client) LagoonSchema(ctx context.Context, lagoonSchema *schema.LagoonSchema) error
- func (c *Client) ProjectByName(ctx context.Context, name string, project *schema.Project) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements the lagoon package interfaces for the Lagoon GraphQL API.
func (*Client) AddEnvVariable ¶
func (c *Client) AddEnvVariable(ctx context.Context, in *schema.EnvVariableInput, out *schema.EnvKeyValue) error
AddEnvVariable adds an EnvVariable to an Environment or Project.
func (*Client) AddGroupsToProject ¶
func (c *Client) AddGroupsToProject(ctx context.Context, in *schema.ProjectGroupsInput, out *schema.Project) error
AddGroupsToProject adds Groups to a Project.
func (*Client) AddNotificationEmail ¶
func (c *Client) AddNotificationEmail(ctx context.Context, in *schema.AddNotificationEmailInput, out *schema.NotificationEmail) error
AddNotificationEmail defines an Email notification.
func (*Client) AddNotificationMicrosoftTeams ¶
func (c *Client) AddNotificationMicrosoftTeams(ctx context.Context, in *schema.AddNotificationMicrosoftTeamsInput, out *schema.NotificationMicrosoftTeams) error
AddNotificationMicrosoftTeams defines a MicrosoftTeams notification.
func (*Client) AddNotificationRocketChat ¶
func (c *Client) AddNotificationRocketChat(ctx context.Context, in *schema.AddNotificationRocketChatInput, out *schema.NotificationRocketChat) error
AddNotificationRocketChat defines a RocketChat notification.
func (*Client) AddNotificationSlack ¶
func (c *Client) AddNotificationSlack(ctx context.Context, in *schema.AddNotificationSlackInput, out *schema.NotificationSlack) error
AddNotificationSlack defines a Slack notification.
func (*Client) AddNotificationToProject ¶
func (c *Client) AddNotificationToProject(ctx context.Context, in *schema.AddNotificationToProjectInput, out *schema.Project) error
AddNotificationToProject adds a Notification to a Project.
func (*Client) AddNotificationWebhook ¶ added in v0.18.0
func (c *Client) AddNotificationWebhook(ctx context.Context, in *schema.AddNotificationWebhookInput, out *schema.NotificationWebhook) error
AddNotificationWebhook defines a Webhook notification.
func (*Client) AddOrUpdateEnvironment ¶
func (c *Client) AddOrUpdateEnvironment(ctx context.Context, in *schema.AddEnvironmentInput, out *schema.Environment) error
AddOrUpdateEnvironment adds or updates a Project Environment.
func (*Client) AddProject ¶
func (c *Client) AddProject( ctx context.Context, in *schema.AddProjectInput, out *schema.Project) error
AddProject adds a project.
func (*Client) AddSSHKey ¶
func (c *Client) AddSSHKey( ctx context.Context, in *schema.AddSSHKeyInput, out *schema.SSHKey) error
AddSSHKey adds an SSH key to a user.
func (*Client) AddUserToGroup ¶
func (c *Client) AddUserToGroup( ctx context.Context, in *schema.UserGroupRoleInput, out *schema.Group) error
AddUserToGroup adds a user to a group.
func (*Client) EnvironmentByName ¶
func (c *Client) EnvironmentByName(ctx context.Context, name string, projectID uint, environment *schema.Environment) error
EnvironmentByName queries the Lagoon API for an environment by its name and parent projectID, and unmarshals the response into environment.
func (*Client) LagoonAPIVersion ¶
func (c *Client) LagoonAPIVersion( ctx context.Context, lagoonAPIVersion *schema.LagoonVersion) error
LagoonAPIVersion queries the Lagoon API for its version, and unmarshals the response.
func (*Client) LagoonSchema ¶
LagoonSchema queries the Lagoon API for its schema, and unmarshals the response.