// Copyright AGNTCY Contributors (https://github.com/agntcy) // SPDX-License-Identifier: Apache-2.0 syntax = "proto3"; package agntcy.oasf.types.v1; // Locator points to the source where record can be found at. // For example, a locator can be a link to a helm chart. message Locator { // Metadata associated with the locator. // Annotations with "agntcy." prefix are reserved for system use. map annotations = 1; // Type of the locator. // Supports custom values. // Native types are defined in the LocatorType enum. string type = 2; // Locations where the source can be found at. // Specs: https://datatracker.ietf.org/doc/html/rfc1738 repeated string urls = 3; } // LocatorType defines placeholders for supported locators. // Used in lowercase string format across APIs. enum LocatorType { UNSPECIFIED = 0; // "" HELM_CHART = 1; // "helm_chart" CONTAINER_IMAGE = 2; // "container_image" PACKAGE = 3; // "package" SOURCE_CODE = 4; // "source_code" BINARY = 5; // "binary" URL = 6; // "url" }