opslevel

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provider

func Provider() terraform.ResourceProvider

Types

type ListServicesByFrameworkQuery

type ListServicesByFrameworkQuery struct {
	Account struct {
		Services ServiceConnection `graphql:"services(framework: $framework, after: $after, first: $first)"`
	}
}

func (*ListServicesByFrameworkQuery) Query

func (q *ListServicesByFrameworkQuery) Query(client *opslevel.Client, framework string) error

type ListServicesByLanguageQuery

type ListServicesByLanguageQuery struct {
	Account struct {
		Services ServiceConnection `graphql:"services(language: $language, after: $after, first: $first)"`
	}
}

func (*ListServicesByLanguageQuery) Query

func (q *ListServicesByLanguageQuery) Query(client *opslevel.Client, language string) error

type ListServicesByOwnerAliasQuery

type ListServicesByOwnerAliasQuery struct {
	Account struct {
		Services ServiceConnection `graphql:"services(ownerAlias: $ownerAlias, after: $after, first: $first)"`
	}
}

func (*ListServicesByOwnerAliasQuery) Query

func (q *ListServicesByOwnerAliasQuery) Query(client *opslevel.Client, ownerAlias string) error

type ListServicesByTagQuery

type ListServicesByTagQuery struct {
	Account struct {
		Services ServiceConnection `graphql:"services(tag: {key:$key}, after: $after, first: $first)"`
	}
}

func (*ListServicesByTagQuery) Query

func (q *ListServicesByTagQuery) Query(client *opslevel.Client, key, value string) error

func (*ListServicesByTagQuery) Services

func (q *ListServicesByTagQuery) Services() []Service

type ListServicesByTagValueQuery

type ListServicesByTagValueQuery struct {
	Account struct {
		Services ServiceConnection `graphql:"services(tag: {key:$key, value:$value}, after: $after, first: $first)"`
	}
}

func (*ListServicesByTagValueQuery) Query

func (q *ListServicesByTagValueQuery) Query(client *opslevel.Client, key, value string) error

func (*ListServicesByTagValueQuery) Services

func (q *ListServicesByTagValueQuery) Services() []Service

type Service

type Service struct {
	opslevel.Service
	Tags    ServiceTagsConnection `json:"tags"`
	HtmlURL string                `json:"htmlUrl"`
}

func GetServiceWithAlias

func GetServiceWithAlias(client *opslevel.Client, alias string) (*Service, error)

func GetServiceWithId

func GetServiceWithId(client *opslevel.Client, id string) (*Service, error)

func ListServicesByFramework

func ListServicesByFramework(client *opslevel.Client, framework string) ([]Service, error)

func ListServicesByLanguage

func ListServicesByLanguage(client *opslevel.Client, framework string) ([]Service, error)

func ListServicesByOwnerAlias

func ListServicesByOwnerAlias(client *opslevel.Client, framework string) ([]Service, error)

func ListServicesByTag

func ListServicesByTag(client *opslevel.Client, value string) ([]Service, error)

type ServiceConnection

type ServiceConnection struct {
	Nodes    []Service
	PageInfo opslevel.PageInfo
}

type ServiceTagsConnection

type ServiceTagsConnection struct {
	Nodes []opslevel.Tag
}

Jump to

Keyboard shortcuts

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