Documentation ¶
Index ¶
- func IsNil(i interface{}) bool
- type Channel
- type ChannelRule
- type ChannelService
- func (s *ChannelService) Add(channel *Channel) (*Channel, error)
- func (s *ChannelService) Get(channelsQuery Query) (*resources.Resources[*Channel], error)
- func (s *ChannelService) GetAll() ([]*Channel, error)
- func (s *ChannelService) GetByID(id string) (*Channel, error)
- func (s *ChannelService) Update(channel *Channel) (*Channel, error)
- type Query
- type VersionRuleTestQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Channel ¶
type Channel struct { Description string `json:"Description,omitempty"` IsDefault bool `json:"IsDefault"` LifecycleID string `json:"LifecycleId,omitempty"` Name string `json:"Name" validate:"required,notblank,notall"` ProjectID string `json:"ProjectId" validate:"required,notblank"` Rules []ChannelRule `json:"Rules,omitempty"` SpaceID string `json:"SpaceId,omitempty"` TenantTags []string `json:"TenantTags,omitempty"` resources.Resource }
func NewChannel ¶
type ChannelRule ¶
type ChannelRule struct { ActionPackages []packages.DeploymentActionPackage `json:"ActionPackages,omitempty"` ID string `json:"Id,omitempty"` Tag string `json:"Tag,omitempty"` //Use the NuGet or Maven versioning syntax (depending on the feed type) //to specify the range of versions to include VersionRange string `json:"VersionRange,omitempty"` resources.Resource }
type ChannelService ¶
type ChannelService struct { services.CanDeleteService // contains filtered or unexported fields }
func NewChannelService ¶
func NewChannelService(sling *sling.Sling, uriTemplate string, versionRuleTestPath string) *ChannelService
func (*ChannelService) Add ¶
func (s *ChannelService) Add(channel *Channel) (*Channel, error)
Add creates a new channel.
func (*ChannelService) Get ¶
Get returns a collection of channels 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 (*ChannelService) GetAll ¶
func (s *ChannelService) GetAll() ([]*Channel, error)
GetAll returns all channels. If none can be found or an error occurs, it returns an empty collection.
type VersionRuleTestQuery ¶
type VersionRuleTestQuery struct { FeedType string `uri:"feedType,omitempty" url:"feedType,omitempty"` PreReleaseTag string `uri:"preReleaseTag,omitempty" url:"preReleaseTag,omitempty"` Version string `uri:"version,omitempty" url:"version,omitempty"` VersionRange string `uri:"versionRange,omitempty" url:"versionRange,omitempty"` }
Click to show internal directories.
Click to hide internal directories.