projectgroups

package
v2.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: Apache-2.0 Imports: 7 Imported by: 4 modules, 8 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNil

func IsNil(i interface{}) bool

Types

type ProjectGroup

type ProjectGroup struct {
	Description       string   `json:"Description,omitempty"`
	EnvironmentIDs    []string `json:"EnvironmentIds,omitempty"`
	Name              string   `json:"Name,omitempty" validate:"required"`
	RetentionPolicyID string   `json:"RetentionPolicyId,omitempty"`
	SpaceID           string   `json:"SpaceId,omitempty"`

	resources.Resource
}

func NewProjectGroup

func NewProjectGroup(name string) *ProjectGroup

type ProjectGroupService

type ProjectGroupService struct {
	services.CanDeleteService
}

ProjectGroupService handles communication with ProjectGroup-related methods of the Octopus API.

func NewProjectGroupService

func NewProjectGroupService(sling *sling.Sling, uriTemplate string) *ProjectGroupService

NewProjectGroupService returns a projectGroupService with a preconfigured client.

func (*ProjectGroupService) Add

func (s *ProjectGroupService) Add(projectGroup *ProjectGroup) (*ProjectGroup, error)

Add creates a new project group.

func (*ProjectGroupService) Get

Get returns a collection of project groups based on the criteria defined by its input query parameter. If an error occurs, an empty collection is returned along with the associated error.

func (*ProjectGroupService) GetAll

func (s *ProjectGroupService) GetAll() ([]*ProjectGroup, error)

GetAll returns all project groups. If none can be found or an error occurs, it returns an empty collection.

func (*ProjectGroupService) GetByID

func (s *ProjectGroupService) GetByID(id string) (*ProjectGroup, error)

GetByID returns the project group that matches the input ID. If one cannot be found, it returns nil and an error.

func (*ProjectGroupService) GetByPartialName

func (s *ProjectGroupService) GetByPartialName(partialName string) ([]*ProjectGroup, error)

GetByPartialName performs a lookup and returns a collection of project groups with a matching partial name.

func (*ProjectGroupService) GetProjects

func (s *ProjectGroupService) GetProjects(projectGroup *ProjectGroup) ([]*projects.Project, error)

func (*ProjectGroupService) Update

func (s *ProjectGroupService) Update(resource ProjectGroup) (*ProjectGroup, error)

Update modifies a project group based on the one provided as input.

type ProjectGroupsQuery

type ProjectGroupsQuery struct {
	IDs         []string `uri:"ids,omitempty" url:"ids,omitempty"`
	PartialName string   `uri:"partialName,omitempty" url:"partialName,omitempty"`
	Skip        int      `uri:"skip,omitempty" url:"skip,omitempty"`
	Take        int      `uri:"take,omitempty" url:"take,omitempty"`
}

Jump to

Keyboard shortcuts

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