github.com/drone/go-convert@v0.0.0-20240307072510-6bd371c65e61/convert/gitlab/yaml/release.go (about) 1 // Copyright 2022 Harness, Inc. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 package yaml 16 17 type Release struct { 18 Tag string `yaml:"tag_name,omitempty"` 19 TagMessage string `yaml:"tag_message,omitempty"` 20 Name string `yaml:"name,omitempty"` 21 Desc string `yaml:"description,omitempty"` 22 Ref string `yaml:"ref,omitempty"` 23 Milestones Stringorslice `yaml:"milestones,omitempty"` 24 ReleasedAt string `yaml:"released_at,omitempty"` 25 Assets *Assets `yaml:"assets,omitempty"` 26 } 27 28 type Assets struct { 29 Links []*AssetLink `yaml:"links,omitempty"` 30 } 31 32 type AssetLink struct { 33 Name string `yaml:"name,omitempty"` 34 Url string `yaml:"url,omitempty"` 35 FilePath string `yaml:"filepath,omitempty"` 36 LinkType string `yaml:"link_type,omitempty"` 37 }