asset

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OrderByCreateTime                 = "createTime"
	OrderByCreateTimeDesc             = "createTime DESC"
	OrderByProjectID                  = "name"
	OrderByProjectIDDesc              = "name DESC"
	OrderByParentFullResourceName     = "parentFullResourceName"
	OrderByParentFullResourceNameDesc = "parentFullResourceName DESC"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FolderScope

type FolderScope struct {
	ID string
}

func (*FolderScope) Scope

func (s *FolderScope) Scope() string

func (*FolderScope) String

func (s *FolderScope) String() string

type OrganizationScope

type OrganizationScope struct {
	ID string
}

func (*OrganizationScope) Scope

func (s *OrganizationScope) Scope() string

func (*OrganizationScope) String

func (s *OrganizationScope) String() string

type Project

type Project struct {
	ProjectID              string    `json:"projectID"`
	ProjectNumber          string    `json:"projectNumber"`
	DisplayName            string    `json:"displayName"`
	State                  string    `json:"state"`
	OrganizationID         string    `json:"organizationID"`
	ParentFullResourceName string    `json:"parentFullResourceName"`
	CreateTime             time.Time `json:"createTime"`
}

type ProjectScope

type ProjectScope struct {
	IDOrNumber string
}

func (*ProjectScope) Scope

func (s *ProjectScope) Scope() string

func (*ProjectScope) String

func (s *ProjectScope) String() string

type Scope

type Scope interface {
	Scope() string
}

type Service

type Service struct {
	AssetClient *cloudasset.Client
}

func NewService

func NewService(ctx context.Context, assetClient *cloudasset.Client) (*Service, error)

func (*Service) ListProject

func (s *Service) ListProject(ctx context.Context, scope Scope, query string, orderBy string) (rets []*Project, err error)

Jump to

Keyboard shortcuts

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